From fe67eb2cb7d8fd4902702363df7e0bfdf151abfc Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Wed, 31 Jan 2024 12:43:22 -0500 Subject: [PATCH] refactor(fixtures): support pytest>=8, drop pytest-cases dependency --- modflow_devtools/fixtures.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modflow_devtools/fixtures.py b/modflow_devtools/fixtures.py index 0700cf8..4504f72 100644 --- a/modflow_devtools/fixtures.py +++ b/modflow_devtools/fixtures.py @@ -71,7 +71,7 @@ def module_tmpdir(tmpdir_factory, request) -> Path: @pytest.fixture(scope="session") def session_tmpdir(tmpdir_factory, request) -> Path: - temp = Path(tmpdir_factory.mktemp(request.session.name)) + temp = Path(tmpdir_factory.mktemp(request.config.rootpath.name)) yield temp keep = request.config.option.KEEP diff --git a/pyproject.toml b/pyproject.toml index 4d2a701..3ed78e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,6 @@ test = [ "ninja", "numpy", "pytest", - "pytest-cases", "pytest-cov", "pytest-dotenv", "pytest-xdist",