Skip to content

Commit

Permalink
Fall back to using sqlite for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Aug 6, 2024
1 parent 6de1d12 commit 69eed74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threedigrid_builder/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
def db(tmp_path_factory):
"""Yields a threedigrid_builder.interface.db.SQLite object with access
to the test v2_bergermeer.gpkg."""
fn = tmp_path_factory.mktemp("data") / "v2_bergermeer.gpkg"
sqlite_path = data_path / "v2_bergermeer.gpkg"
fn = tmp_path_factory.mktemp("data") / "v2_bergermeer.sqlite"
sqlite_path = data_path / "v2_bergermeer.sqlite"
shutil.copyfile(sqlite_path, fn)
if not os.path.isfile(fn):
pytest.skip("sample sqlite is not available", allow_module_level=True)
Expand Down

0 comments on commit 69eed74

Please sign in to comment.