diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-13 09:08:03 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-15 22:28:37 +0100 |
| commit | 4104dafdf3607c259309a0edd3bfd7169d88ac18 (patch) | |
| tree | 66e80cd1074d296a1023adfcef07444aaf96bb28 /tests | |
| parent | f3a2509a54e0b5513199efca5e41a5183fc097f0 (diff) | |
Removed django.contrib.gis.geoip2.GeoIP2.coords() per deprecation timeline.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/test_geoip2.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/gis_tests/test_geoip2.py b/tests/gis_tests/test_geoip2.py index 61b3565d1c..aa74837e4f 100644 --- a/tests/gis_tests/test_geoip2.py +++ b/tests/gis_tests/test_geoip2.py @@ -201,15 +201,6 @@ class GeoLite2Test(SimpleTestCase): version = f"{m.binary_format_major_version}.{m.binary_format_minor_version}" self.assertEqual(repr(g), f"<GeoIP2 [v{version}] _path='{g._path}'>") - def test_coords_deprecation_warning(self): - g = GeoIP2() - msg = "GeoIP2.coords() is deprecated. Use GeoIP2.lon_lat() instead." - with self.assertWarnsMessage(RemovedInDjango60Warning, msg) as ctx: - e1, e2 = g.coords(self.ipv4_str) - self.assertIsInstance(e1, float) - self.assertIsInstance(e2, float) - self.assertEqual(ctx.filename, __file__) - def test_open_deprecation_warning(self): msg = "GeoIP2.open() is deprecated. Use GeoIP2() instead." with self.assertWarnsMessage(RemovedInDjango60Warning, msg) as ctx: |
