Skip to content
Snippets Groups Projects
Commit b37ab082 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[tests] Fix datadir location for session-scoped objects

parent d2a649af
No related branches found
No related tags found
No related merge requests found
Pipeline #69021 passed
...@@ -70,7 +70,7 @@ def temporary_basedir(tmp_path_factory): ...@@ -70,7 +70,7 @@ def temporary_basedir(tmp_path_factory):
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def montgomery_datadir(tmp_path_factory, request) -> pathlib.Path: def montgomery_datadir(tmp_path_factory) -> pathlib.Path:
from ptbench.utils.rc import load_rc from ptbench.utils.rc import load_rc
database_dir = load_rc().get("datadir.montgomery") database_dir = load_rc().get("datadir.montgomery")
...@@ -79,10 +79,7 @@ def montgomery_datadir(tmp_path_factory, request) -> pathlib.Path: ...@@ -79,10 +79,7 @@ def montgomery_datadir(tmp_path_factory, request) -> pathlib.Path:
# else, we must extract the LFS component # else, we must extract the LFS component
archive = ( archive = (
pathlib.Path(request.module.__file__).parents[0] pathlib.Path(__file__).parents[0] / "data" / "lfs" / "test-database.zip"
/ "data"
/ "lfs"
/ "test-database.zip"
) )
assert archive.exists(), ( assert archive.exists(), (
f"Neither datadir.montgomery is set on the global configuration, " f"Neither datadir.montgomery is set on the global configuration, "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment