| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # !/usr/bin/python |
||
| 41 | def test_response(self) -> None: |
||
| 42 | """Test the conversion to the APIResponse object and the json.dumps |
||
| 43 | |||
| 44 | :return: |
||
| 45 | """ |
||
| 46 | response = SearchResponse(success=True, checked_time=time()) |
||
| 47 | response.add_item(self._item) |
||
| 48 | json_response_dump = json.dumps(response.__dict__) |
||
| 49 | api_response = APIResponse(json_response_dump) |
||
| 50 | self.assertEqual(api_response.data.success, True) |
||
| 51 | |||
| 56 |