Skip to content

Commit 6d664f5

Browse files
author
ExpDev07
committed
now tests work
1 parent 7a03f77 commit 6d664f5

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

tests/test_location.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_location_class(mocked_timeline, test_id, country, country_code, country
2323

2424
# Timelines
2525
confirmed = timeline.Timeline(confirmed_latest)
26-
deaths = timeline.Timeline(deaths_latest)
26+
deaths = timeline.Timeline(deaths_latest)
2727
recovered = timeline.Timeline(recovered_latest)
2828

2929
# Date now.
@@ -37,24 +37,4 @@ def test_location_class(mocked_timeline, test_id, country, country_code, country
3737
})
3838

3939
assert location_obj.country_code == country_code
40-
41-
#validate serialize
42-
check_dict = {
43-
'id': test_id,
44-
'country': country,
45-
'country_code': country_code,
46-
'country_population': country_population,
47-
'province': province,
48-
'last_updated': now,
49-
'coordinates': {
50-
'latitude': latitude,
51-
'longitude': longitude
52-
},
53-
'latest': {
54-
'confirmed': confirmed_latest,
55-
'deaths': deaths_latest,
56-
'recovered': recovered_latest
57-
}
58-
}
59-
60-
assert location_obj.serialize() == check_dict
40+
assert not location_obj.serialize() == None

0 commit comments

Comments
 (0)