From 2fe9d377128d80b49ea8038c5f7f12d35d8ab69b Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Wed, 3 Apr 2024 15:06:28 +0100 Subject: [PATCH] revert: "fix: Fix geoip not containing postal_code for UK" (#21299) Revert "fix: Fix geoip not containing postal_code for UK (#19307)" This reverts commit cab8aeabfdac968f9959180de3f601ea368b200b. --- posthog/api/test/test_geoip.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/posthog/api/test/test_geoip.py b/posthog/api/test/test_geoip.py index 43dbc729a5ba7..dae4ec7064ffc 100644 --- a/posthog/api/test/test_geoip.py +++ b/posthog/api/test/test_geoip.py @@ -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):