diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-08-17 19:06:25 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-08-19 17:57:01 +0200 |
| commit | 6295ea0027d808dcc309aa42cc58f6fdf172c3fc (patch) | |
| tree | 1155058a07ffa089ebd4e587858dfb6528126060 /tests | |
| parent | 3569536491f16c9d112959d23cf3c18417063c54 (diff) | |
Replaced HAS_SPATIAL_DB by testing database feature
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.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index c32cc32cdf..ed14bdb666 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -60,13 +60,12 @@ ALWAYS_MIDDLEWARE_CLASSES = ( def get_test_modules(): - from django.contrib.gis.tests.utils import HAS_SPATIAL_DB modules = [] discovery_paths = [ (None, RUNTESTS_DIR), (CONTRIB_MODULE_PATH, CONTRIB_DIR) ] - if HAS_SPATIAL_DB: + if connection.features.gis_enabled: discovery_paths.append( ('django.contrib.gis.tests', os.path.join(CONTRIB_DIR, 'gis', 'tests')) ) |
