Fixed OGRInspectTest.test_time_field with memory Spatialite database.
Some checks are pending
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run

This commit is contained in:
David Smith 2025-08-24 08:23:54 +01:00 committed by Mariusz Felisiak
parent 424e0d8697
commit 82b3b84a78

View file

@ -6,6 +6,7 @@ from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException
from django.contrib.gis.utils.ogrinspect import ogrinspect from django.contrib.gis.utils.ogrinspect import ogrinspect
from django.core.management import call_command from django.core.management import call_command
from django.db import connection, connections from django.db import connection, connections
from django.db.backends.sqlite3.creation import DatabaseCreation
from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
from django.test.utils import modify_settings from django.test.utils import modify_settings
@ -233,7 +234,7 @@ def get_ogr_db_string():
return None return None
# SQLite/SpatiaLite in-memory databases # SQLite/SpatiaLite in-memory databases
if db["NAME"] == ":memory:": if DatabaseCreation.is_in_memory_db(db["NAME"]):
return None return None
# Build the params of the OGR database connection string # Build the params of the OGR database connection string