mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 04:44:26 +02:00
Skip SpatiaLite tests with sqlean.py
Refs https://github.com/nalgeon/sqlean/issues/87
This commit is contained in:
parent
31bde41baf
commit
01e92b0173
1 changed files with 9 additions and 0 deletions
|
|
@ -6,6 +6,12 @@ from sqlite_utils.cli import cli
|
||||||
from sqlite_utils.db import Database
|
from sqlite_utils.db import Database
|
||||||
from sqlite_utils.utils import find_spatialite, sqlite3
|
from sqlite_utils.utils import find_spatialite, sqlite3
|
||||||
|
|
||||||
|
try:
|
||||||
|
import sqlean
|
||||||
|
except ImportError:
|
||||||
|
sqlean = None
|
||||||
|
|
||||||
|
|
||||||
pytestmark = [
|
pytestmark = [
|
||||||
pytest.mark.skipif(
|
pytest.mark.skipif(
|
||||||
not find_spatialite(), reason="Could not find SpatiaLite extension"
|
not find_spatialite(), reason="Could not find SpatiaLite extension"
|
||||||
|
|
@ -14,6 +20,9 @@ pytestmark = [
|
||||||
not hasattr(sqlite3.Connection, "enable_load_extension"),
|
not hasattr(sqlite3.Connection, "enable_load_extension"),
|
||||||
reason="sqlite3.Connection missing enable_load_extension",
|
reason="sqlite3.Connection missing enable_load_extension",
|
||||||
),
|
),
|
||||||
|
pytest.mark.skipif(
|
||||||
|
sqlean is not None, reason="sqlean.py is not compatible with SpatiaLite"
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue