summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2022-07-30 23:52:17 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-08-01 20:29:49 +0200
commit44c24bf02835323d5418512ebe8e76166739ebf8 (patch)
tree013df00075a0de632c470652e2c089f0b18a0428 /tests/gis_tests
parent2aa6fb2121fb6dee1b65e90c85660d6bfab66334 (diff)
downloaddjango-44c24bf02835323d5418512ebe8e76166739ebf8.tar.gz
Refs #25706 -- Removed inline CSS in the openlayers widget template.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/geoadmin/tests.py4
-rw-r--r--tests/gis_tests/test_geoforms.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/gis_tests/geoadmin/tests.py b/tests/gis_tests/geoadmin/tests.py
index 54b7073d69..a7e5700b49 100644
--- a/tests/gis_tests/geoadmin/tests.py
+++ b/tests/gis_tests/geoadmin/tests.py
@@ -16,7 +16,7 @@ class GeoAdminTest(SimpleTestCase):
output = str(form["point"])
self.assertInHTML(
'<textarea id="id_point" class="vSerializedField required" cols="150"'
- ' rows="10" name="point"></textarea>',
+ ' rows="10" name="point" hidden></textarea>',
output,
)
@@ -27,7 +27,7 @@ class GeoAdminTest(SimpleTestCase):
output = str(form["point"])
self.assertInHTML(
'<textarea id="id_point" class="vSerializedField required" cols="150"'
- ' rows="10" name="point"></textarea>',
+ ' rows="10" name="point" hidden></textarea>',
output,
)
self.assertEqual(len(cm.records), 1)
diff --git a/tests/gis_tests/test_geoforms.py b/tests/gis_tests/test_geoforms.py
index cef88d7115..d1bc43b9da 100644
--- a/tests/gis_tests/test_geoforms.py
+++ b/tests/gis_tests/test_geoforms.py
@@ -166,12 +166,12 @@ class GeometryFieldTest(SimpleTestCase):
self.assertInHTML(
'<textarea id="id_pt2" class="vSerializedField required" cols="150"'
- ' rows="10" name="pt2"></textarea>',
+ ' rows="10" name="pt2" hidden></textarea>',
output,
)
self.assertInHTML(
'<textarea id="id_pt3" class="vSerializedField required" cols="150"'
- ' rows="10" name="pt3"></textarea>',
+ ' rows="10" name="pt3" hidden></textarea>',
output,
)
# Only the invalid PNT(0) triggers an error log entry.