We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4274ef4 commit 76f9bc5Copy full SHA for 76f9bc5
tests/test_app.py
@@ -33,6 +33,7 @@ def mock_response():
33
with patch("requests.request") as mock_req:
34
yield mock_req
35
36
+
37
def test_temperature_success(mock_response, client):
38
with open("tests/weather.json", encoding="UTF-8") as f:
39
mock_response.return_value.status_code = HTTPStatus.OK
@@ -41,5 +42,6 @@ def test_temperature_success(mock_response, client):
41
42
assert response.status_code == HTTPStatus.OK
43
assert response.json == ({"avg_temp": 6.77, "status": "Too Cold"})
44
45
46
# write failure tests
47
# /metrics
0 commit comments