Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mel-liow committed Jan 29, 2022
1 parent 14a91d6 commit fb4a49c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/test_airpyllution.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def json(self):
return "ERROR"
return MockResponse(mock_forecast_data, 200)

return MockResponse({"cod": 401, "message": mock_invalid_message,}, 404,)
return MockResponse(
{"cod": 401, "message": mock_invalid_message},
404,
)


@patch("requests.get", side_effect=mocked_requests_get_pollution)
Expand Down Expand Up @@ -213,7 +216,9 @@ def test_air_pollution(mock_api_call):
# API error
assert (
airpyllution.get_air_pollution(
mock_params["lat"], mock_params["lon"], mock_error_params["appid"],
mock_params["lat"],
mock_params["lon"],
mock_error_params["appid"],
)
== "An error occurred requesting data from the API"
)
Expand Down Expand Up @@ -303,7 +308,9 @@ def test_pollution_forecast(mock_api_call):

assert (
airpyllution.get_pollution_forecast(
mock_params["lat"], mock_params["lon"], mock_error_params["appid"],
mock_params["lat"],
mock_params["lon"],
mock_error_params["appid"],
)
== "An error occurred requesting data from the API"
)
Expand Down

0 comments on commit fb4a49c

Please sign in to comment.