mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed redundant database vendor helpers in gis_tests/utils.py.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9f91122ed8
commit
e3ece0144a
@@ -24,16 +24,9 @@ def skipUnlessGISLookup(*gis_lookups):
|
||||
return decorator
|
||||
|
||||
|
||||
# Shortcut booleans to omit only portions of tests.
|
||||
_default_db = settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1]
|
||||
oracle = _default_db == 'oracle'
|
||||
postgis = _default_db == 'postgis'
|
||||
mysql = _default_db == 'mysql'
|
||||
mariadb = mysql and connection.mysql_is_mariadb
|
||||
spatialite = _default_db == 'spatialite'
|
||||
|
||||
# MySQL spatial indices can't handle NULL geometries.
|
||||
gisfield_may_be_null = not mysql
|
||||
gisfield_may_be_null = _default_db != 'mysql'
|
||||
|
||||
|
||||
class FuncTestMixin:
|
||||
|
||||
Reference in New Issue
Block a user