Skip to content

Commit

Permalink
Merge branch 'master' into feature/paths-funnels-followups
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie authored Apr 3, 2024
2 parents 1523e6c + 2fe9d37 commit 520a861
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions posthog/api/test/test_geoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
@pytest.mark.parametrize(
"test_input,expected",
[
(australia_ip, ("Australia", 6)),
(uk_ip, ("United Kingdom", 5)),
(us_ip_v6, ("United States", 6)),
(australia_ip, "Australia"),
(uk_ip, "United Kingdom"),
(us_ip_v6, "United States"),
],
)
def test_geoip_results(test_input, expected):
properties = get_geoip_properties(test_input)
name, length = expected
assert properties["$geoip_country_name"] == name
assert len(properties) == length
assert properties["$geoip_country_name"] == expected
assert len(properties) == 6


class TestGeoIPDBError(TestCase):
Expand Down

0 comments on commit 520a861

Please sign in to comment.