1
0
mirror of https://github.com/django/django.git synced 2025-01-14 04:18:17 +00:00
Commit Graph

433 Commits

Author SHA1 Message Date
Adam Johnson
4bb33bb074 Fixed -- Fixed handling invalid indentifiers in URL path conversion.
This patch adjusted existing tests that used invalid identifiers.
2020-04-15 11:29:35 +02:00
Claude Paroz
a6b4c07b6e Refs -- Installed postgis_raster extension on PostGIS 3+. 2020-04-14 09:34:01 +02:00
Hasan Ramezani
591e2270dc Fixed -- Added tests for <Backend>GeometryColumns.geom_col_name(). 2020-03-10 12:22:35 +01:00
Mariusz Felisiak
c48a7d3a8a Fixed typos in tolerance gis_tests. 2020-03-10 07:55:31 +01:00
Mariusz Felisiak
9358da704e Refs -- Fixed RasterFieldTest.test_deserialize_with_pixeltype_flags() when run without numpy. 2020-03-07 22:46:13 +01:00
Mariusz Felisiak
a3917c323f Replaced deprecated assertEquals() with assertEqual() in RasterFieldTest. 2020-03-07 22:46:13 +01:00
Hasan Ramezani
7e15795bf0 Fixed -- Fixed RasterField deserialization with pixeltype flags.
Thanks Ivor Bosloper for the original patch.
2020-03-05 09:44:44 +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
Diederik van der Boor
84e35f4679 Fixed -- Fixed django.contrib.gis.gdal.gdal_full_version() crash. 2020-02-24 13:28:51 +01:00
Diederik van der Boor
975eb42036 Added test for django.contrib.gis.gdal.gdal_version(). 2020-02-24 13:15:35 +01:00
=Pratik Kumar
20ba3ce4ac Fixed -- Made PostGIS backend respect Index's name argument. 2020-02-10 13:25:32 +01:00
Hannes Ljungberg
adcf1a7308 Fixed -- Added missing space before USING SQL on PostGIS. 2020-02-10 11:20:45 +01:00
Nick Pope
335c9c94ac Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
Sergey Fedoseev
31e2ab345b Fixed -- Relaxed GeometryDistance test for PROJ 5.2+. 2020-01-21 22:16:23 +01:00
Sergey Fedoseev
f2a725fba3 Fixed -- Prevented segmentation fault on LineString iteration.
This reverts commit 138a78ec8c and adds
a test for the regression.
2020-01-21 21:46:47 +01:00
Sergey Fedoseev
a920c0b852 Fixed -- Fixed MakeValid.output_field when geometry type is changed.
Regression in 2ef4b4795e.
2020-01-20 08:59:45 +01:00
Mariusz Felisiak
266c853e10
Fixed -- 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 -- Fixed GIS lookups crash against a subquery annotation.
Thanks Vasileios Bouzas for the report.
2019-11-25 12:30:33 +01:00
Sergey Fedoseev
a5855c8f0f Fixed -- Added AsWKB and AsWKT GIS functions. 2019-11-22 13:40:48 +01:00
Jon Dufresne
aa12cf07c9 Removed unnecessary numeric indexes in format strings. 2019-11-19 08:29:47 +01:00
Sergey Fedoseev
f95b59a1b3 Fixed -- Added Oracle support for AsGeoJSON GIS function. 2019-11-18 15:32:44 +01:00
Nick Pope
7552de7866 Used more specific unittest assertions in tests.
* assertIsNone()/assertIsNotNone() instead of comparing to None.
* assertLess() for < comparisons.
* assertIs() for 'is' expressions.
* assertIsInstance() for isinstance() expressions.
* rounding of assertAlmostEqual() for round() expressions.
* assertIs(..., True/False) instead of comparing to True/False.
* assertIs()/assertIsNot() for ==/!= comparisons.
* assertNotEqual() for == comparisons.
* assertTrue()/assertFalse() instead of comparing to True/False.
2019-10-29 12:37:30 +01:00
Sergey Fedoseev
6bbf9a20e2 Fixed -- Added LinearRing.is_counterclockwise property. 2019-10-25 14:28:26 +02:00
Mariusz Felisiak
3a8af298b9 Fixed -- 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
Min ho Kim
103a6f4307 Fixed some typos in comments and docs.
Thanks to Mads Jenson for review.
2019-10-02 15:50:46 +02:00
Simon Charette
bb9e82f274 Fixed -- Added support for distance expression to the dwithin lookup.
This was missed when adding support to other distance lookups in
refs .

Thanks Peter Bex for the report and Mariusz for testcases.
2019-08-23 21:28:28 +02:00
Andrew Brown
8a281aa7fe Fixed -- Fixed using of OuterRef() expressions in distance lookups. 2019-08-16 06:50:33 +02:00
Claude Paroz
eed2e740f7 Fixed -- Made GeoIP2 and GEOIP_PATH setting accept pathlib.Path as library path.
Thanks Nikita Krokosh for the initial patch.
2019-08-13 19:44:10 +02:00
Claude Paroz
3c6d32e0b2 Fixed -- Fixed loss of SRID when calling reverse() on LineString/Point.
Thanks Mariusz Felisiak for contributing the Point part.
2019-07-27 20:12:46 +02:00
Mariusz Felisiak
4305fbe8b1
Fixed GeoIPTest.test04_city() failure with the latest GeoIP2 database. 2019-06-27 15:09:28 +02:00
Mariusz Felisiak
3dca8738cb
Simplified GISFunctionsTests.test_point_on_surface(). 2019-06-12 12:59:02 +02:00
Mariusz Felisiak
b616f65855
Added missing support for PointOnSurface function on MariaDB. 2019-06-12 10:51:43 +02:00
Mariusz Felisiak
198a0adef2 Removed obsolete comment from GISFunctionsTests.test_asgeojson(). 2019-06-12 09:43:03 +02:00
Mariusz Felisiak
2e00119e39 Fixed GISFunctionsTests.test_asgeojson() crash on MariaDB 10.2+. 2019-06-12 09:43:03 +02:00
Ivor Bosloper
5ec44973dc Fixed typo in RasterField test name. 2019-05-27 13:40:03 +02:00
luzpaz
e2feea5fc4 Fixed comment typo. 2019-05-09 17:04:50 +02:00
Chris Adkins
705ef6cfeb Fixed -- Added 'is_in_european_union' in GeoIP2.city() dict. 2019-05-07 13:31:44 +02:00
Dustin Neighly
49fb3f5f3e Fixed -- Added support for the furlong unit in Distance. 2019-04-19 08:54:23 +02:00
Markus Holtermann
da0b2554ec Renamed camelCaseTestMethods to snake_case_test_methods 2019-04-14 16:14:14 +02:00
Francisco Couzo
0193bf874f Fixed -- Added the GeometryDistance function. 2019-03-20 12:54:42 -04: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 -- 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
Tim Graham
ea87a85fad
Dropped support for GEOS 3.4. 2019-02-09 08:40:55 -05:00
Tim Graham
e7fd69d051 Fixed -- Dropped support for GDAL 1.11. 2019-02-08 14:08:05 -05:00
Tim Graham
39ebdf5a3c Fixed -- Dropped support for PostgreSQL 9.4 and PostGIS 2.1. 2019-02-04 18:07:02 -05:00
Kathryn Killebrew
75d627888b Fixed -- Fixed reading nulls with LayerMapping. 2019-01-31 19:50:16 -05:00
Tim Graham
6f23996a59 Refs -- Removed ForceRHR function per deprecation timeline. 2019-01-17 10:52:19 -05:00
Mariusz Felisiak
1508e71c5b Relaxed assertions to fix GIS test failures on Oracle 18c. 2019-01-14 18:32:42 -05:00
Simon Charette
8c775391b7 Refs -- Deprecated TestCase's allow_database_queries and multi_db in favor of databases. 2019-01-10 19:11:21 -05:00
Tim Graham
0004daa536
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
2019-01-02 18:18:19 -05:00
Tim Graham
043bd70942 Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
jtiai
5a77190e66 Fixed -- Made GeometryField.deconstruct() handle 'extent' and 'tolerance' args. 2018-12-21 17:44:45 -05:00
jtiai
7b9f8e38bb Added tests for GeometryField.deconstruct(). 2018-12-21 17:41:39 -05:00
Tim Graham
7056a4dd8e Switched TestCase to SimpleTestCase in GIS tests. 2018-11-27 10:22:13 -05:00
Simon Charette
84e7a9f4a7 Switched setUp() to setUpTestData() where possible in Django's tests. 2018-11-27 09:35:17 -05:00
Claude Paroz
d7e18a509e Fixed -- Catched GDALException in GeometryField.to_python 2018-11-23 09:39:02 +01:00
Mariusz Felisiak
d5f4ce9849
Fixed -- Refactored db introspection identifier converters.
Removed DatabaseIntrospection.table_name_converter()/column_name_converter()
and use instead DatabaseIntrospection.identifier_converter().

Removed DatabaseFeatures.uppercases_column_names.

Thanks Tim Graham for the initial patch and review and Simon Charette
for the review.
2018-11-21 09:06:50 +01:00
Tom Forbes
8f90593e6f Removed obsolete and flaky GeoIP tests. 2018-10-23 20:46:49 -04:00
Florian Apolloner
e127ef62de Fixed a failing test when the source directory is on a readonly fs. 2018-10-21 19:37:58 +02:00
Sergey Fedoseev
8ef8bc0f64 Refs -- Simplifed code using unpacking generalizations. 2018-09-28 09:57:12 -04:00
Jon Dufresne
82f286cf6f Refs -- Switched to https:// links where available. 2018-09-26 08:48:47 +02:00
Sergey Fedoseev
c5e450ac95 Fixed -- Confirmed support for PROJ 5.x. 2018-09-17 12:03:30 -04:00
Melvyn Sopacua
e7a56eb4f0 Fixed -- Fixed LayerMapping crash with null geometry and unique. 2018-07-27 16:38:28 -04:00
Claude Paroz
c28bf990d7 Refs -- Fixed GIS tests on MariaDB 2018-07-13 18:27:30 +02:00
Sergey Fedoseev
3411c5551a Refs -- Fixed crash during pickling of empty GEOS point. 2018-07-09 11:02:12 -04:00
Mushtaq Ali
66b6b68923 Fixed -- Fixed CPointerBase.__del__() ImportError crash. 2018-07-06 11:26:14 -04:00
Tom
f98e1c01ea Refs -- Fixed test_isvalid_lookup on MySQL 8+. 2018-07-06 08:59:27 -04:00
Sergey Fedoseev
a799dc51b9 Fixed -- Added SpatiaLite support for covers and coveredby lookups. 2018-06-21 09:25:31 -04:00
Sergey Fedoseev
d8d21d3891 Made test for GIS Envelope function more strict. 2018-06-20 16:48:50 +05:00
Tim Graham
9e4f26bb40
Fixed -- Confirmed support for GDAL 2.3. 2018-06-12 13:34:58 -04:00
Tim Graham
860903b261
Dropped support for GDAL 1.9 and 1.10. 2018-06-11 08:33:09 -04:00
Claude Paroz
86988dd890 Refs -- Relaxed WGS 84 check regex
With GDAL 2.3, the exact string changed again.
2018-06-09 09:19:08 +02:00
Tim Graham
666be7b994 Fixed -- Fixed ogrinspect test_time_field failure on SpatiaLite. 2018-06-01 22:55:22 -04:00
Tim Graham
55f4eee75d
Fixed -- Fixed ogrinspect test failures with GDAL 2.2. 2018-06-01 22:31:46 -04:00
Mariusz Felisiak
d0ad03cded Refs -- Fixed GeoExpressionsTests.test_multiple_annotation() on MySQL 5.7+.
Failure introduced in b6e48f514e.
2018-05-31 10:38:42 -04:00
Tim Graham
3dffcb5579
Relaxed a GDAL raster test.
The exact metadata depends on the GDAL version.
2018-05-29 21:39:31 -04:00
Stefan R. Filipek
a5a2ceeb45 Fixed -- Added router.allow_relation() calls for assignments between unsaved model instances. 2018-05-10 20:42:44 -04:00
Claude Paroz
607970f31c Replaced django.test.utils.patch_logger() with assertLogs().
Thanks Tim Graham for the review.
2018-05-07 09:34:00 -04:00
Tim Graham
7a22d9f751
Fixed a test failure with the latest GeoIP2 database. 2018-04-17 21:30:05 -04:00
Claude Paroz
2a2ed0e70a Fixed -- Fixed OpenLayersWidget deserialization ignoring the widget map's SRID.
Regression in 6ecccad711.
2018-04-02 10:20:00 -04:00
Alex Stovbur
d171843f57 Fixed -- Added an exception if GeoIP database can't be loaded from the path. 2018-03-05 12:20:30 -05:00
Stanislav Karpov
6d794fb762 Fixed -- Added GEOSGeometry.buffer_with_style(). 2018-02-10 19:45:58 -05:00
Tim Graham
fa75b2cb51
Refs -- Removed force_bytes/text() usage in tests. 2018-02-07 14:20:04 -05:00
Mariusz Felisiak
b002a032f9
Fixed -- Fixed a regression where a queryset that annotates with geometry objects crashes.
Made GEOSGeometryBase hashable.
Regression in 19b2dfd1bf.

Thanks Tim Graham for the review.
2018-01-27 11:12:11 +01:00
Дилян Палаузов
a38ae914d8 Fixed -- Simplified some boolean constructs and removed trivial continue statements. 2018-01-12 12:44:50 -05:00
Tim Graham
66d74676e2 Fixed a GeoIP2 test failure with the latest GeoIP2 database. 2018-01-10 09:39:41 -05:00
Дилян Палаузов
d7b2aa24f7 Fixed -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
Mariusz Felisiak
83a36ac49a
Removed unnecessary trailing commas and spaces in various code. 2017-12-28 21:07:29 +01:00
Sergey Fedoseev
aefe624c62 Fixed -- Added ForcePolygonCW GIS function and deprecated ForceRHR. 2017-12-27 19:26:14 -05:00
Sergey Fedoseev
da71e4bb08 Fixed -- Reallowed filtering a queryset with GeometryField=None.
Regression in 58da81a5a3.
2017-12-12 17:12:04 -10:00
Sergey Fedoseev
93cdd07e8f Used bytes.hex() and bytes.fromhex() to simplify. 2017-11-23 08:52:23 -05:00
Sergey Fedoseev
69922d303d Refs -- Fixed GeoModelTest.test_raw_sql_query.
The test was a false positive.
2017-11-04 10:08:26 -04:00
Ryan Verner
9473a8481a Fixed -- Added 'continent_code' and 'continent_name' in GeoIP2.city() dict. 2017-10-25 10:07:37 -04:00
Mads Jensen
45d5d2dcaa Removed unnecessary tuple()/list() calls. 2017-10-21 09:42:25 -04:00
Simon Charette
9d93dff333 Fixed -- Change some database exceptions to NotImplementedError per PEP 249. 2017-10-06 12:47:08 -04:00
Niall Dalton
4fe6588da3 Fixed -- Added color interpretation method to GDALBand. 2017-09-21 09:42:38 -04:00
Thomas Schorr
52eb5b289e Fixed -- Made ogrinspect output pep8 compliant. 2017-09-20 21:03:14 -04:00