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 28b7369 commit bb64d25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from app import app
import json

def test_hello1_route():
response = app.test_client().get('/')
Expand All @@ -18,5 +19,6 @@ def test_calculate_most_points_post():
"contest": "total_lb_tackles",
"week": 14,
"year": "2023"})
json_response = json.loads(response.get_data(as_text=True))
assert response.status_code == 200
assert response.data == '{"status":"200", "data": "OK"}'
assert json_response == {'status':'200', 'data': 'OK'}

0 comments on commit bb64d25

Please sign in to comment.