diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-22 11:36:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 11:36:27 +0200 |
commit | eeb0bb63795f7500156abaed2a94aae681a9fc4a (patch) | |
tree | 71535b36835e3eee72253a22b3dcad62ba223220 /tests/gis_tests | |
parent | 6f453cd2981525b33925faaadc7a6e51fa90df5c (diff) | |
download | django-eeb0bb63795f7500156abaed2a94aae681a9fc4a.tar.gz |
Refs #27674 --- Deprecated django.contrib.gis.admin.OpenLayersWidget.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r-- | tests/gis_tests/geoadmin_deprecated/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gis_tests/geoadmin_deprecated/tests.py b/tests/gis_tests/geoadmin_deprecated/tests.py index dd3e3af069..d6bea7a690 100644 --- a/tests/gis_tests/geoadmin_deprecated/tests.py +++ b/tests/gis_tests/geoadmin_deprecated/tests.py @@ -125,3 +125,8 @@ class DeprecationTests(SimpleTestCase): DeprecatedOSMGeoAdmin(City, site) with self.assertRaisesMessage(RemovedInDjango50Warning, msg): DeprecatedGeoModelAdmin(City, site) + + def test_openlayerswidget_warning(self): + msg = "django.contrib.gis.admin.OpenLayersWidget is deprecated." + with self.assertRaisesMessage(RemovedInDjango50Warning, msg): + admin.OpenLayersWidget() |