summaryrefslogtreecommitdiff
path: root/tests/gis_tests/test_geoforms.py
AgeCommit message (Collapse)Author
2026-02-06Fixed #36246 -- Caught GDALException in BaseGeometryWidget.deserialize.JaeHyuck Sa
Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
2025-10-20Removed duplicate display_raw key in expected data in GeometryWidgetTests.Emmanuel Ferdman
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-08-05Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts ↵Matthias Kestenholz
in the admin. This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c where multiple geometry widgets rendered `<script>` elements in the admin with the same HTML `id`, resulting in invalid HTML and fragile JavaScript selectors. Refs #25706. This change uses the widget's textarea ID to generate a unique `id` for each JSON options `<script>`, ensuring valid and robust markup. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-06-12Fixed #25706 -- Refactored geometry widgets to remove inline JavaScript.Claude Paroz
Refactored GIS-related JavaScript initialization to eliminate inline scripts from templates. Added support for specifying a base layer using the new `base_layer_name` attribute on `BaseGeometryWidget`, allowing custom map tile providers via user-defined JavaScript. As a result, the `gis/openlayers-osm.html` template was removed. Thanks Sarah Boyce for reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-09-18Refs #33924 -- Removed BaseGeometryWidget.map_height/map_width attributes ↵Mariusz Felisiak
per deprecation timeline.
2022-08-12Fixed #33924 -- Deprecated BaseGeometryWidget.map_height/map_width attributes.Claude Paroz
2022-08-01Refs #25706 -- Removed inline CSS in the openlayers widget template.Claude Paroz
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-03-23Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.Mariusz Felisiak
Different PROJ versions use different transformations, all are correct as having a 1 meter accuracy. These are differences in PROJ versions that cannot and should not be handled in Django itself. Thanks Jani Tiainen and David Smith for reports. See: https://github.com/OSGeo/gdal/issues/3377
2020-11-28Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to ↵Giannis Adamopoulos
'Geometry'.
2020-11-28Added assertion for geom_type in BaseGeometryWidget.get_context().Giannis Adamopoulos
2020-05-12Fixed #30678 -- Added support for GDAL 3.Claude Paroz
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-10-02Fixed some typos in comments and docs.Min ho Kim
Thanks to Mads Jenson for review.
2018-11-23Fixed #29978 -- Catched GDALException in GeometryField.to_pythonClaude Paroz
2018-05-07Replaced django.test.utils.patch_logger() with assertLogs().Claude Paroz
Thanks Tim Graham for the review.
2018-04-02Fixed #29116 -- Fixed OpenLayersWidget deserialization ignoring the widget ↵Claude Paroz
map's SRID. Regression in 6ecccad711b52f9273b1acb07a57d3f806e93928.
2017-05-24Refs #27804 -- Used subTest() in several tests.Bruno Alla
2017-05-14Fixed #28195 -- Added OSMWidget.default_zoom attribute.Danilo Bargen
2017-05-14Simplified test for OSMWidget.default_lon/lat.Tim Graham
2017-05-04Made runtests.py run gis_tests only when using a GIS database backend.Tim Graham
This facilitates other changes like refs #28160.
2017-04-30Fixed #28105 -- Fixed crash in BaseGeometryWidget.get_context() when ↵Dylan Verheul
overriding existing attrs.
2017-04-20Fixed #28039 -- Fixed crash in BaseGeometryWidget.subwidgets().Tim Graham
2017-03-21Fixed #27965 -- Fixed precision comparison in a geoforms test (refs #27939).Sergey Fedoseev
2017-03-17Fixed #27939 -- Updated OpenLayersWidget.map_srid for OpenLayers 3.Tim Graham
Regression in 2ebfda38e65177dfc7d6e90457ffa4a0fa2796f0 (refs #25004).
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-03Refs #25004 -- Fixed test failure introduced by OpenLayers 3 update.Claude Paroz
2017-01-02Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3Claude Paroz
Thanks Tim Graham for the review.
2016-11-23Fixed #26920 -- Made GEOSGeometry equality check consider the sridJackie Leng
2016-11-14Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-08-08Fixed #27024 -- Prevented logging error with empty string as geometry widget ↵Claude Paroz
value Thanks Gavin Wahl for the report, and Tim Graham for the review.
2016-06-18Fixed #26753 -- Made GDAL a required dependency for contrib.gisClaude Paroz
Thanks Tim Graham for the review.
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-28Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.Tim Graham
2015-04-24Removed many HAS_GEOS conditional importsClaude Paroz
2015-04-18Stopped conditional discovery of gis_tests appsClaude Paroz
Refs #23879.
2015-02-11Moved contrib.gis tests out of contrib.Tim Graham