From 172dc2441cfbb59e6c1c9681775fc063cf3dbc93 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Tue, 6 Aug 2024 16:00:24 +0200 Subject: [PATCH] Fall back to using sqlite for testing --- integration_tests/test_bergermeer.py | 2 +- threedigrid_builder/tests/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_tests/test_bergermeer.py b/integration_tests/test_bergermeer.py index 464e61c5..d3c807e9 100644 --- a/integration_tests/test_bergermeer.py +++ b/integration_tests/test_bergermeer.py @@ -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) diff --git a/threedigrid_builder/tests/conftest.py b/threedigrid_builder/tests/conftest.py index 9b35be87..0946ab0c 100644 --- a/threedigrid_builder/tests/conftest.py +++ b/threedigrid_builder/tests/conftest.py @@ -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)