1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

Added gis_tests.utils.mariadb hook.

This commit is contained in:
Mariusz Felisiak
2019-10-17 19:20:22 +02:00
parent ef4beafa2c
commit bebf61de11
4 changed files with 8 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ from django.db import NotSupportedError, connection
from django.db.models import Sum
from django.test import TestCase, skipUnlessDBFeature
from ..utils import FuncTestMixin, mysql, oracle, postgis, spatialite
from ..utils import FuncTestMixin, mariadb, mysql, oracle, postgis, spatialite
from .models import City, Country, CountryWebMercator, State, Track
@@ -85,7 +85,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
# WHERE "geoapp_city"."name" = 'Chicago';
# Finally, we set every available keyword.
# MariaDB doesn't limit the number of decimals in bbox.
if mysql and connection.mysql_is_mariadb:
if mariadb:
chicago_json['bbox'] = [-87.650175, 41.850385, -87.650175, 41.850385]
self.assertJSONEqual(
City.objects.annotate(