Skip to content

Commit

Permalink
Delete test files
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Feb 13, 2024
1 parent c4f97d1 commit 65b719e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,18 @@ def test_some_slices_local_output_to_non_existing_dir(self):
]
for uri in slices:
make_test_dataset(uri=uri)
with pytest.raises(
FileNotFoundError,
match="\\ATarget parent directory does not exist: .*/non_existent_dir\\Z",
):
zappend(slices, target_dir=target_dir)
try:
with pytest.raises(
FileNotFoundError,
match=(
"\\ATarget parent directory does not exist: .*/non_existent_dir\\Z"
),
):
zappend(slices, target_dir=target_dir)
finally:
shutil.rmtree(target_dir, ignore_errors=True)
for slice_dir in slices:
shutil.rmtree(slice_dir, ignore_errors=True)

def test_some_slices_with_class_slice_source(self):
target_dir = "memory://target.zarr"
Expand Down

0 comments on commit 65b719e

Please sign in to comment.