summaryrefslogtreecommitdiff
path: root/tests/gis_tests/geoapp/tests.py
AgeCommit message (Collapse)Author
2025-12-28Added some skips to GIS tests.Tim Graham
Also replaced some DatabaseFeatures.supports_<foo>_lookup attributes with @skipUnlessGISLookup.
2025-12-09Added tests for MultiPointField, MultiLineStringField, and ↵Tim Graham
GeometryCollectionField.
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-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2025-07-23Refs #36009 -- Adjusted ↵David Smith
gis_tests.geoapp.tests.GeoLookupTest.test_relate_lookup for bug in PostGIS. ST_Relate() with PostGIS 3.5 and GEOS 3.13 gives a different result when a series of calls are made vs. single call of the same function. The fix for this is expected to be released in PostGIS 3.5.4 and 3.6.0. https://lists.osgeo.org/pipermail/postgis-devel/2025-July/030581.html https://trac.osgeo.org/postgis/ticket/5938
2024-10-24Refs #35803 -- Added more tests for __coveredby and __covers GIS lookups.Mariusz Felisiak
Co-authored-by: David Smith <smithdc@gmail.com>
2023-08-22Removed unnecessary trailing commas in tests.konsti
2023-08-04Fixed #34686 -- Added support for GEOS 3.12.Olivier Tabone
2023-03-02Fixed #34374 -- Fixed GIS tests on Windows.Heath Henley
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2023-01-03Fixed #23842 -- Fixed flaky GeoQuerySetTest.test_make_line() test.Mariusz Felisiak
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-07-08Fixed #33718 -- Dropped support for MySQL 5.7.Mariusz Felisiak
2022-06-21Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.Claude Paroz
Regression in 64c3f049ea3bcb1c82f35ae09f1dd5349a826a5c.
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
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-03-02Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.François Freitag
2021-01-13Removed redundant database vendor helpers in gis_tests/utils.py.Tim Graham
2021-01-02Replaced DatabaseFeatures.supports_left_right_lookups with skipUnlessGISLookup.Tim Graham
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-11-30Added SpatialFeatures.supports_tolerance_parameter.Tim Graham
2020-11-06Refs #31910 -- Fixed GeoQuerySetTest.test_geoagg_subquery() test on Oracle 18c.Mariusz Felisiak
2020-11-04Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.Simon Charette
Regression was introduced by fff5186 but was due a long standing issue. AggregateQuery was abusing Query.subquery: bool by stashing its compiled inner query's SQL for later use in its compiler which made select_format checks for Query.subquery wrongly assume the provide query was a subquery. This patch prevents that from happening by using a dedicated inner_query attribute which is compiled at a later time by SQLAggregateCompiler. Moving the inner query's compilation to SQLAggregateCompiler.compile had the side effect of addressing a long standing issue with aggregation subquery pushdown which prevented converters from being run. This is now fixed as the aggregation_regress adjustments demonstrate. Refs #25367. Thanks Eran Keydar for the report.
2020-10-27Removed unneeded @no_oracle skips.Tim Graham
2020-10-27Made OracleSpatialAdapter clone geometries rather than mutate them.Tim Graham
2020-03-10Fixed typos in tolerance gis_tests.Mariusz Felisiak
2020-03-05Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.Mariusz Felisiak
2020-03-04Fixed CVE-2020-9402 -- Properly escaped tolerance parameter in GIS functions ↵Mariusz Felisiak
and aggregates on Oracle. Thanks to Norbert Szetei for the report.
2020-01-16Fixed #31162 -- Prevented error logs when using WKT strings in lookups.Mariusz Felisiak
Thanks dbxnr for the initial patch. Regression in 6f44f714c92d2966dca390ebd3054e5fb0bb0c80.
2019-11-25Fixed #31002 -- Fixed GIS lookups crash against a subquery annotation.Simon Charette
Thanks Vasileios Bouzas for the report.
2019-10-18Fixed #30890 -- Added MariaDB support for the relate lookup.Mariusz Felisiak
2019-10-18Added gis_tests.utils.mariadb hook.Mariusz Felisiak
2019-03-03Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak
This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
2019-02-25Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak
2019-02-12Fixed #22423 -- Added support for MySQL operators on real geometries.Claude Paroz
Thanks Viswanathan Mahalingam for the report and initial patch, and Nicke Pope and Tim Graham for the review.
2018-07-06Refs #29451 -- Fixed test_isvalid_lookup on MySQL 8+.Tom
2018-06-21Fixed #29509 -- Added SpatiaLite support for covers and coveredby lookups.Sergey Fedoseev
2017-12-12Fixed #28896 -- Reallowed filtering a queryset with GeometryField=None.Sergey Fedoseev
Regression in 58da81a5a372a69f0bac801c412b57f3cce5f188.
2017-11-04Refs #17448 -- Fixed GeoModelTest.test_raw_sql_query.Sergey Fedoseev
The test was a false positive.
2017-10-06Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette
PEP 249.
2017-08-24Fixed #28380 -- Excluded null geometries in SpatiaLite geometry lookups.Fabian Schindler
2017-07-27Fixed #28437 -- Added support for complex geometry expressions in GIS lookups.Sergey Fedoseev
2017-05-30Fixed gis_tests.geoapp test with incorrect geodetic coordinates.Mariusz Felisiak
The latitude coordinates exceed -90, 90 bounds and caused a test failure on Oracle 12.2. Thanks Michał Wierzbowski for help preparing the patch.
2017-05-04Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.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-01Fixed #26967 -- Added MySQL support for AsGeoJSON, GeoHash, IsValid ↵Sergey Fedoseev
functions, and isvalid lookup.
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz