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 172dc24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration_tests/test_bergermeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def count_unique(arr):

@pytest.mark.parametrize(
"filename",
["v2_bergermeer.sqlite", "v2_bergermeer.gpkg"],
["v2_bergermeer.sqlite"],
)
def test_integration(tmp_path, filename):
shutil.copyfile(unittests_data_path / filename, tmp_path / filename)
Expand Down
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 172dc24

Please sign in to comment.