Conditions | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | """kytos.cli.commands.web.parser tests.""" |
||
37 | 1 | @staticmethod |
|
38 | 1 | @patch('kytos.cli.commands.web.api.WebAPI.update') |
|
39 | 1 | @patch('kytos.utils.config.KytosConfig') |
|
40 | 1 | def test_call(*args): |
|
41 | """Test call method.""" |
||
42 | 1 | (_, mock_web_api) = args |
|
43 | 1 | call('update', 'args') |
|
44 | |||
45 | mock_web_api.assert_called_with('args') |
||
46 |