Skip to content

Commit 8978af1

Browse files
committed
test /locations codes
1 parent a0542f2 commit 8978af1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_routes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,19 @@ def test_v2_locations_id(self, mock_request_get, mock_datetime):
118118

119119
def tearDown(self):
120120
pass
121+
122+
123+
@pytest.mark.parametrize(
124+
"query_params",
125+
[
126+
{"source": "csbs"},
127+
{"source": "jhu"},
128+
{"timelines": True},
129+
{"timelines": "true"},
130+
{"source": "jhu", "timelines": True},
131+
],
132+
)
133+
def test_locations_status_code(api_client, query_params):
134+
response = api_client.get("/v2/locations", params=query_params)
135+
print(f"GET {response.url}\n{response}")
136+
assert response.status_code == 200

0 commit comments

Comments
 (0)