Skip to content

Commit

Permalink
Update test_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-hsieh committed Feb 8, 2024
1 parent e2cae6e commit 28b7369
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ def test_calculate_most_points_get():
response = app.test_client().get('/most_points_get')
json_response = response.get_json()
assert list(json_response.keys()) == ['contest', 'contest_results']
assert response.status_code == 200
assert response.status_code == 200

def test_calculate_most_points_post():
response = app.test_client().post('/most_points_post',
json={
"contest": "total_lb_tackles",
"week": 14,
"year": "2023"})
assert response.status_code == 200
assert response.data == '{"status":"200", "data": "OK"}'

0 comments on commit 28b7369

Please sign in to comment.