Skip to content

Commit

Permalink
Disable legacy tmpdir fixture
Browse files Browse the repository at this point in the history
And fix two tests that used it.
  • Loading branch information
bloodearnest committed Jan 13, 2025
1 parent 4b08cf1 commit 452dd97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ add_ignore = [
]

[tool.pytest.ini_options]
addopts = "--tb=native --strict-markers --dist=loadgroup"
addopts = "--tb=native --strict-markers --dist=loadgroup -p no:legacypath"
testpaths = ["tests"]
filterwarnings = [
# ignnore dbapi() deprecation warnings for the third party TrinoDialect that we subclass
Expand Down
6 changes: 3 additions & 3 deletions tests/functional/test_dump_example_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import contextlib


def test_dump_example_data(call_cli, tmpdir):
with contextlib.chdir(tmpdir):
def test_dump_example_data(call_cli, tmp_path):
with contextlib.chdir(tmp_path):
call_cli("dump-example-data")
filenames = [path.basename for path in (tmpdir / "example-data").listdir()]
filenames = [path.name for path in (tmp_path / "example-data").iterdir()]
assert "patients.csv" in filenames
4 changes: 2 additions & 2 deletions tests/functional/test_graph_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
shutil.which("dot") is None,
reason="Graphing requires Graphviz library",
)
def test_graph_query(call_cli, tmpdir): # pragma: no cover
output_file = tmpdir / "query.svg"
def test_graph_query(call_cli, tmp_path): # pragma: no cover
output_file = tmp_path / "query.svg"
call_cli(
"graph-query",
FIXTURES_PATH / "dataset_definition.py",
Expand Down

0 comments on commit 452dd97

Please sign in to comment.