summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/test_geoforms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gis_tests/test_geoforms.py b/tests/gis_tests/test_geoforms.py
index 2a1f585906..753505fc68 100644
--- a/tests/gis_tests/test_geoforms.py
+++ b/tests/gis_tests/test_geoforms.py
@@ -214,7 +214,7 @@ class GeometryFieldTest(SimpleTestCase):
"id": "id_p",
"geom_name": "Point",
}
- expected = json_script(attrs, "mapwidget-options")
+ expected = json_script(attrs, "id_p_mapwidget_options")
self.assertInHTML(expected, rendered)
@@ -305,7 +305,7 @@ class SpecializedFieldTest(SimpleTestCase):
"id": map_field.id_for_label,
"geom_name": geom_name,
}
- expected = json_script(attrs, "mapwidget-options")
+ expected = json_script(attrs, f"{map_field.id_for_label}_mapwidget_options")
self.assertInHTML(expected, rendered)
self.assertIn("gis/js/OLMapWidget.js", str(form_instance.media))
@@ -475,7 +475,7 @@ class OSMWidgetTest(SimpleTestCase):
"id": "id_p",
"geom_name": "Point",
}
- expected = json_script(attrs, "mapwidget-options")
+ expected = json_script(attrs, "id_p_mapwidget_options")
self.assertInHTML(expected, rendered)