François Freitag
7ca7f4495b
Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.
2021-03-02 20:35:33 +01:00
Tim Graham
e3ece0144a
Removed redundant database vendor helpers in gis_tests/utils.py.
2021-01-13 09:22:44 +01:00
Tim Graham
060e6bdd1f
Replaced DatabaseFeatures.supports_left_right_lookups with skipUnlessGISLookup.
2021-01-02 21:39:48 +01:00
Hasan Ramezani
275dd4ebba
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
...
Co-authored-by: Tim Graham <timograham@gmail.com>
2020-12-10 18:00:57 +01:00
Tim Graham
371022a20d
Added SpatialFeatures.supports_tolerance_parameter.
2020-11-30 07:29:00 +01:00
Mariusz Felisiak
13b6fff117
Refs #31910 -- Fixed GeoQuerySetTest.test_geoagg_subquery() test on Oracle 18c.
2020-11-06 08:48:11 +01:00
Simon Charette
c2d4926702
Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.
...
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-11-04 09:54:58 +01:00
Tim Graham
c3b1e41288
Removed unneeded @no_oracle skips.
2020-10-27 07:14:16 +01:00
Tim Graham
7734337bcb
Made OracleSpatialAdapter clone geometries rather than mutate them.
2020-10-27 07:14:16 +01:00
Mariusz Felisiak
c48a7d3a8a
Fixed typos in tolerance gis_tests.
2020-03-10 07:55:31 +01:00
Mariusz Felisiak
5ca76baa72
Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.
2020-03-05 08:55:34 +01:00
Mariusz Felisiak
6695d29b1c
Fixed CVE-2020-9402 -- Properly escaped tolerance parameter in GIS functions and aggregates on Oracle.
...
Thanks to Norbert Szetei for the report.
2020-03-04 09:04:50 +01:00
Mariusz Felisiak
266c853e10
Fixed #31162 -- Prevented error logs when using WKT strings in lookups.
...
Thanks dbxnr for the initial patch.
Regression in 6f44f714c9
.
2020-01-16 14:34:54 +01:00
Simon Charette
0290e01d5a
Fixed #31002 -- Fixed GIS lookups crash against a subquery annotation.
...
Thanks Vasileios Bouzas for the report.
2019-11-25 12:30:33 +01:00
Mariusz Felisiak
3a8af298b9
Fixed #30890 -- Added MariaDB support for the relate lookup.
2019-10-18 07:46:31 +02:00
Mariusz Felisiak
bebf61de11
Added gis_tests.utils.mariadb hook.
2019-10-18 07:46:31 +02:00
Mariusz Felisiak
b435f82939
Reverted "Fixed relative paths imports per isort 4.3.5."
...
This reverts commit 463fe11bc8
due to
restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
2019-03-03 19:33:48 +01:00
Mariusz Felisiak
463fe11bc8
Fixed relative paths imports per isort 4.3.5.
2019-02-25 11:03:30 +01:00
Claude Paroz
15715bf2a2
Fixed #22423 -- Added support for MySQL operators on real geometries.
...
Thanks Viswanathan Mahalingam for the report and initial patch, and
Nicke Pope and Tim Graham for the review.
2019-02-12 17:29:16 -05:00
Tom
f98e1c01ea
Refs #29451 -- Fixed test_isvalid_lookup on MySQL 8+.
2018-07-06 08:59:27 -04:00
Sergey Fedoseev
a799dc51b9
Fixed #29509 -- Added SpatiaLite support for covers and coveredby lookups.
2018-06-21 09:25:31 -04:00
Sergey Fedoseev
da71e4bb08
Fixed #28896 -- Reallowed filtering a queryset with GeometryField=None.
...
Regression in 58da81a5a3
.
2017-12-12 17:12:04 -10:00
Sergey Fedoseev
69922d303d
Refs #17448 -- Fixed GeoModelTest.test_raw_sql_query.
...
The test was a false positive.
2017-11-04 10:08:26 -04:00
Simon Charette
9d93dff333
Fixed #28665 -- Change some database exceptions to NotImplementedError per PEP 249.
2017-10-06 12:47:08 -04:00
Fabian Schindler
da0fb5b1ec
Fixed #28380 -- Excluded null geometries in SpatiaLite geometry lookups.
2017-08-24 08:30:11 -04:00
Sergey Fedoseev
6ebe3a95ea
Fixed #28437 -- Added support for complex geometry expressions in GIS lookups.
2017-07-27 08:06:08 -04:00
Mariusz Felisiak
037d6540ec
Fixed gis_tests.geoapp test with incorrect geodetic coordinates.
...
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-30 08:22:40 -04:00
Tim Graham
2dc3280254
Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
2017-05-04 20:45:18 -04:00
Tim Graham
890537253c
Made runtests.py run gis_tests only when using a GIS database backend.
...
This facilitates other changes like refs #28160 .
2017-05-04 20:29:19 -04:00
Sergey Fedoseev
0a13b249e2
Fixed #26967 -- Added MySQL support for AsGeoJSON, GeoHash, IsValid functions, and isvalid lookup.
2017-04-01 13:43:53 -04:00
Tim Graham
6b4f018b2b
Replaced type-specific assertions with assertEqual().
...
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-03-17 07:51:48 -04:00
Claude Paroz
2b281cc35e
Refs #23919 -- Removed most of remaining six usage
...
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Tim Graham
a0d166306f
Removed GeoManager and GeoQuerySet per deprecation timeline.
2017-01-17 20:51:56 -05:00
Tim Graham
c04207cd38
Replaced some GIS has_X_method skips with supports_X_aggr/has_X_function.
2017-01-03 09:49:00 -05:00
Sergey Fedoseev
e36a9d3fd1
Simplified a GIS test by using an SRID available on all backends.
2016-12-15 09:32:12 -05:00
Sergey Fedoseev
183f501540
Fixed #26789 -- Fixed handling of empty geometries in BaseSpatialField.get_db_prep_save().
2016-12-06 13:58:22 -05:00
Sergey Fedoseev
4464b9b9ad
Fixed #27556 -- Added Oracle support for IsValid function and isvalid lookup.
2016-11-30 11:22:56 -05:00
Sergey Fedoseev
f24eea3b69
Simplified union GIS tests with equals() rather than equals_exact().
2016-11-30 07:49:05 -05:00
Sergey Fedoseev
fb3716b156
Enabled GeoQuerySetTest.test_unionagg on Oracle; refs #23504 .
...
It's not clear when it started to work.
2016-11-29 09:06:17 -05:00
Jackie Leng
50613d957a
Fixed #26920 -- Made GEOSGeometry equality check consider the srid
2016-11-23 09:23:06 +01:00
za
321e94fa41
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
2016-11-10 21:30:21 -05:00
Tim Graham
c9ae09addf
Replaced use of TestCase.fail() with assertRaises().
...
Also removed try/except/fail antipattern that hides exceptions.
2016-06-28 11:21:26 -04:00
Jon Dufresne
4f336f6652
Fixed #26747 -- Used more specific assertions in the Django test suite.
2016-06-16 14:19:18 -04:00
Tim Graham
bc84278615
Fixed #26675 -- Dropped support for PostgreSQL 9.2/PostGIS 2.0.
2016-06-01 07:45:22 -04:00
Daniel Wiesmann
c12a00e554
Fixed #26455 -- Allowed filtering and repairing invalid geometries.
...
Added the IsValid and MakeValid database functions, and the isvalid lookup,
all for PostGIS.
Thanks Tim Graham for the review.
2016-04-09 09:22:30 -04:00
Hasan
3d0dcd7f5a
Refs #26022 -- Used context manager version of assertRaises in tests.
2016-01-29 12:32:18 -05:00
Sergey Fedoseev
0825f77f76
Fixed #25836 -- Added support for MakeLine aggregate on SpatiaLite.
2015-12-02 17:25:33 -05:00
Sergey Fedoseev
5f7035cec7
Fixed #25673 -- Made `GeometryField.from_db_value` set SRID
2015-11-06 20:45:31 +01:00
Sergey Fedoseev
8ad923b9d0
Fixed #25636 -- Dropped support for SpatiaLite < 3.0
2015-10-31 14:22:34 +01:00