File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,4 @@ def test_location_class(
5757 )
5858
5959 assert location_obj .country_code == country_code
60- assert not location_obj .serialize () == None
60+ assert location_obj .serialize () is not None
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ async def test_v1_all(self):
8787 assert return_data == json .loads (expected_json_output )
8888
8989 async def test_v2_latest (self ):
90- state = "latest"
91-
9290 with mock .patch ("app.services.location.jhu.datetime" ) as mock_datetime :
9391 mock_datetime .utcnow .return_value .isoformat .return_value = DATETIME_STRING
9492 mock_datetime .strptime .side_effect = mocked_strptime_isoformat
93+ state = "latest"
94+
9595 response = await self .asgi_client .get (f"/v2/{ state } " )
9696
9797 return_data = response .json ()
You can’t perform that action at this time.
0 commit comments