Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import unittest |
||
21 | def test_swagger_is_not_empty(self): |
||
22 | """ The GET on /spec should return an object with a non-empty paths property """ |
||
23 | |||
24 | with warnings.catch_warnings(): |
||
25 | warnings.filterwarnings("ignore", message="unclosed file") |
||
26 | response = self.client.get('/application/spec') |
||
27 | response_json = json.loads(response.data.decode('utf-8')) |
||
28 | self.assertTrue(response_json['paths']) |
||
29 |