mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed redundant database vendor helpers in gis_tests/utils.py.
This commit is contained in:
parent
9f91122ed8
commit
e3ece0144a
12 changed files with 71 additions and 88 deletions
|
@ -10,7 +10,6 @@ from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
|
|||
from django.test.utils import modify_settings
|
||||
|
||||
from ..test_data import TEST_DATA
|
||||
from ..utils import mariadb
|
||||
from .models import AllOGRFields
|
||||
|
||||
|
||||
|
@ -142,7 +141,7 @@ class OGRInspectTest(SimpleTestCase):
|
|||
else:
|
||||
self.assertIn(' f_decimal = models.DecimalField(max_digits=0, decimal_places=0)', model_def)
|
||||
self.assertIn(' f_int = models.IntegerField()', model_def)
|
||||
if not mariadb:
|
||||
if not connection.ops.mariadb:
|
||||
# Probably a bug between GDAL and MariaDB on time fields.
|
||||
self.assertIn(' f_datetime = models.DateTimeField()', model_def)
|
||||
self.assertIn(' f_time = models.TimeField()', model_def)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue