From eeb0bb63795f7500156abaed2a94aae681a9fc4a Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 22 Apr 2022 11:36:27 +0200 Subject: Refs #27674 --- Deprecated django.contrib.gis.admin.OpenLayersWidget. --- tests/gis_tests/geoadmin_deprecated/tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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() -- cgit v1.3