Skip to content

Commit ba5050e

Browse files
Refactored by Sourcery (#33)
Co-authored-by: Sourcery AI <[email protected]>
1 parent 3a2975f commit ba5050e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)