Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use pytest's tmp_path fixture #786

Merged
merged 6 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dsp_tools.models.exceptions import InputError


@pytest.fixture()
@pytest.fixture(autouse=True)
def _retrieve_mapping_file() -> Iterator[None]:
"""Put the mapping file into the cwd."""
mapping_file = Path("testdata/dsp-ingest-data/mapping-00A2.csv")
Expand All @@ -17,7 +17,6 @@ def _retrieve_mapping_file() -> Iterator[None]:
Path(mapping_file.name).unlink()


@pytest.mark.usefixtures("_retrieve_mapping_file")
def test_ingest_xmlupload() -> None:
expected_msg = (
"The upload cannot continue as there are problems with the multimedia files referenced in the XML.\n"
Expand Down