Skip to content

Commit 80daa5a

Browse files
author
ExpDev07
committed
fix tests
1 parent 6c29742 commit 80daa5a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_location.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ def __init__(self, latest):
1010

1111
return TestTimeline(args[0])
1212

13-
@pytest.mark.parametrize("test_id, country, country_code, province, latitude, longitude, confirmed_latest, deaths_latest, recovered_latest", [
14-
(0, "Thailand", "TH", "", 15, 100, 1000, 1111, 22222),
15-
(1, "Deutschland", "DE", "", 15, 100, 1000, 1111, 22222),
16-
(2, "Cruise Ship", "XX", "", 15, 100, 1000, 1111, 22222)
13+
@pytest.mark.parametrize("test_id, country, country_code, country_population, province, county, latitude, longitude, confirmed_latest, deaths_latest, recovered_latest", [
14+
(0, "Thailand", "TH", 1000, "", "", 15, 100, 1000, 1111, 22222),
15+
(1, "Deutschland", "DE", 1000, "", "", 15, 100, 1000, 1111, 22222),
16+
(2, "Cruise Ship", "XX", 1000, "", "", 15, 100, 1000, 1111, 22222)
1717
])
1818
@mock.patch('app.timeline.Timeline', side_effect=mocked_timeline)
19-
def test_location_class(mocked_timeline, test_id, country, country_code, province, latitude, longitude, confirmed_latest, deaths_latest, recovered_latest):
19+
def test_location_class(mocked_timeline, test_id, country, country_code, country_population, province, county, latitude, longitude, confirmed_latest, deaths_latest, recovered_latest):
2020

2121
# id, country, province, coordinates, confirmed, deaths, recovered
2222
coords = coordinates.Coordinates(latitude=latitude, longitude=longitude)
@@ -43,6 +43,7 @@ def test_location_class(mocked_timeline, test_id, country, country_code, provinc
4343
'id': test_id,
4444
'country': country,
4545
'country_code': country_code,
46+
'country_population': country_population,
4647
'province': province,
4748
'last_updated': now,
4849
'coordinates': {

0 commit comments

Comments
 (0)