summaryrefslogtreecommitdiff
path: root/django/contrib/gis/tests/layermap
AgeCommit message (Collapse)Author
2015-02-11Moved contrib.gis tests out of contrib.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-01Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs ↵wrwrwr
#23933.
2014-09-18Fixed string length check in LayerMappingClaude Paroz
2014-09-18Removed unnecessary order_by() from a GIS test that crashed Oracle.Tim Graham
Oracle cannot order_by() a TextField; refs #23504.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-26Removed some more hardcoded backends in GIS testsClaude Paroz
Refs #22632. Thanks Tim Graham for the review.
2014-08-19Replaced HAS_SPATIAL_DB by testing database featureClaude Paroz
Refs #22632. This should be the base for using more database features to exclude specific backends in GIS tests. Thanks Tim Graham for the review.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-01-01Properly assigned app_label to GIS test models.Aymeric Augustin
Used abstract inheritance to cut down on code repetition.
2013-11-02Fixed all E261 warningscoagulant
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fixed up some more flake8 violations (this particular violation still has ↵Alex Gaynor
many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-08Removed a ton of unused local varsAlex Gaynor
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-07-30Rename allow_syncdb to allow_migrateAndrew Godwin
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-10-08Use smarter string decoding in GeoDjangoClaude Paroz
The first try to solve the Python 3 GIS encoding/decoding issue was too naive. Using decode() on all read strings is bound to fail as soon as a non-ascii string is concerned. This patch is a little more clever, leaving ascii decoding when plain ascii strings are expected, and allowing to specify a custom encoding in DataSource hierarchy.
2012-10-05Forgot to import `unittest` from `django.utils`.Justin Bronn
2012-10-05Skip `LayerMapRouterTest` if there are not multiple databases.Justin Bronn
2012-09-20Fixed #17687 -- Made LayerMapping router-awareClaude Paroz
Thanks nosamanuel@gmail.com for the report and the initial patch.
2012-05-24Fixed #18367 -- Allowed LayerMapping to store strings in TextField.Claude Paroz
Thanks geoffhing@gmail.com for the report.
2012-05-24Modernized contrib.gis layermapping tests.Claude Paroz
In particular, make tests independent of each other.
2011-10-17Remove a great many of the remaining relative imports.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed a brittle test in the `LayerMapping` tests.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-30Fixed tests broke in r15926.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Removed a bunch of Python 2.4 workarounds now that we don't support it. Refs ↵Adrian Holovaty
#15702 -- thanks to jonash for the patch. Splitting this over muliple commits to make it more manageable. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-15Fixed #15378 -- Now properly handle OGR layers that have features with ↵Justin Bronn
invalid geometries. Thanks, kunitoki for bug report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02GeoDjango test suite housekeeping. Moved data into fixtures for ↵Justin Bronn
`relatedapp` and `distapp` tests, and made both use Django's `TestCase`; moved functionality out of `GeoDjangoTestSuiteRunner` to allow future re-use in `runtests.py` (refs #10420); compressed test app fixtures and cleaned up imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17Fixed #11753 - Q objects with callables no longer explode on Python 2.4. ↵Jacob Kaplan-Moss
Thanks, Jeremy Dunck. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-02Fixed #12093 -- `LayerMapping` now takes into account model inheritance when ↵Justin Bronn
looking for the geometry column; forgot to diable extent regression test on MySQL. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Refactored and cleaned up parts of the spatial database backend. Changes ↵Justin Bronn
include: * Laid foundations for SpatiaLite support in `GeoQuerySet`, `GeoWhereNode` and the tests. * Added the `Collect` aggregate for PostGIS (still needs tests). * Oracle now goes to 11. * The backend-specific `SpatialRefSys` and `GeometryColumns` models are now attributes of `SpatialBackend`. * Renamed `GeometryField` attributes to be public that were private (e.g., `_srid` -> `srid` and `_geom` -> `geom_type`). * Renamed `create_test_db` to `create_test_spatial_db`. * Removed the legacy classes `GeoMixin` and `GeoQ`. * Removed evil `\` from spatial backend fields. * Moved shapefile data from `tests/layermap` to `tests/data`. Fixed #9794. Refs #9686. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-26Fixed #9664 -- `LayerMapping` now works with MySQL spatial backends.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Merged the gis branch into trunk.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8219 bcc190cf-cafb-0310-a4f2-bffc1f526a37