Skip to content

Commit 1a054ce

Browse files
committed
fixup! feat: use geoip info for display
1 parent 0e093a6 commit 1a054ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/unit/events/test_models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from warehouse.events.models import GeoIPInfo
44

5-
class TestGeoIPInfo:
65

6+
class TestGeoIPInfo:
77
@pytest.mark.parametrize(
88
"test_case_id, test_input, expected",
99
[
@@ -13,7 +13,11 @@ class TestGeoIPInfo:
1313
{"city": "new york", "country_code": "us", "region": "ny"},
1414
"New York, NY, US",
1515
),
16-
("city country", {"city": "new york", "country_code": "us"}, "New York, US"),
16+
(
17+
"city country",
18+
{"city": "new york", "country_code": "us"},
19+
"New York, US",
20+
),
1721
("city region", {"city": "new york", "region": "ny"}, "New York, NY"),
1822
("region country", {"region": "ny", "country_code": "us"}, "NY, US"),
1923
("country", {"country_name": "United States"}, "United States"),

0 commit comments

Comments
 (0)