Skip to content

Commit

Permalink
Fix tests with schema versions that do not support geopackage
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Aug 6, 2024
1 parent f984291 commit bfe5d0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threedi_modelchecker/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def threedi_db(tmpdir_factory):
https://factoryboy.readthedocs.io/en/latest/orms.html#managing-sessions
"""
tmp_path = tmpdir_factory.mktemp("spatialite4")
tmp_sqlite = tmp_path / "empty.gpkg"
shutil.copyfile(data_dir / "empty.gpkg", tmp_sqlite)
tmp_sqlite = tmp_path / "empty.sqlite"
shutil.copyfile(data_dir / "empty.sqlite", tmp_sqlite)
db = ThreediDatabase(tmp_sqlite)
schema = ModelSchema(db)
schema.upgrade(backup=False, upgrade_spatialite_version=False)
Expand Down
3 changes: 3 additions & 0 deletions threedi_modelchecker/tests/data/empty.sqlite
Git LFS file not shown

0 comments on commit bfe5d0e

Please sign in to comment.