Skip to content

Commit

Permalink
Don't write temp file to repo dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Feb 6, 2025
1 parent 98d9bae commit ebd5023
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dkist/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@ def croppable_visp_dataset(tmp_path_factory):


@pytest.fixture(scope="session")
def croppable_cryo_dataset():
def croppable_cryo_dataset(tmp_path_factory):
cryodir = tmp_path_factory.mktemp("data")
with gzip.open(Path(rootdir) / "croppable_cryo.asdf.gz", mode="rb") as gfo:
with open(rootdir / "croppable_cryo.asdf", mode="wb") as afo:
with open(cryodir / "croppable_cryo.asdf", mode="wb") as afo:
afo.write(gfo.read())
return load_dataset(Path(rootdir) / "croppable_cryo.asdf")
return load_dataset(cryodir / "croppable_cryo.asdf")

0 comments on commit ebd5023

Please sign in to comment.