Skip to content

Commit

Permalink
Merge pull request #35 from UBC-MDS/feat-add-get-pollution-forecast
Browse files Browse the repository at this point in the history
Adds extra test cases to pollution forecast function
  • Loading branch information
mel-liow authored Jan 22, 2022
2 parents 9ac0d7b + 7c432dc commit 3e0aa3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_airpyllution.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import patch
from constants import *
from airpyllution.utils import *
import altair as alt
from math import floor


Expand Down Expand Up @@ -249,3 +250,5 @@ def test_pollution_forecast(mock_api_call):
assert len(forecast_chart.data) > 2
assert len(forecast_chart.data) == 16
assert forecast_chart.title == "Pollutant concentration for the next 5 days"
chart_dict = forecast_chart.to_dict()
assert chart_dict["facet"] == alt.Facet("Pollutants:N").to_dict()

0 comments on commit 3e0aa3b

Please sign in to comment.