Conditions | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | """kytos.cli.commands.web.api.WebAPI tests.""" |
||
16 | 1 | @patch('requests.post') |
|
17 | 1 | def test_update(self, mock_post): |
|
18 | """Test update method.""" |
||
19 | 1 | args = {'<version>': 'ABC'} |
|
20 | 1 | self.web_api.update(args) |
|
21 | |||
22 | 1 | kytos_api = KytosConfig().config.get('kytos', 'api') |
|
23 | 1 | url = f"{kytos_api}api/kytos/core/web/update/ABC" |
|
24 | mock_post.assert_called_with(url, timeout=20) |
||
25 |