Conditions | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 10 |
Ratio | 100 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | """kytos.cli.commands.web.parser tests.""" |
||
13 | 1 | @staticmethod |
|
14 | 1 | @patch('kytos.cli.commands.web.parser.call') |
|
15 | 1 | @patch('kytos.cli.commands.web.parser.docopt', return_value='args') |
|
16 | 1 | def test_parse(*args): |
|
17 | """Test parse method.""" |
||
18 | 1 | (_, mock_call) = args |
|
19 | 1 | with patch.object(sys, 'argv', ['A', 'B', 'C']): |
|
20 | 1 | parse('argv') |
|
21 | |||
22 | 1 | mock_call.assert_called_with('C', 'args') |
|
23 | |||
46 |