This commit is contained in:
sneakers-the-rat 2024-09-02 13:41:04 -07:00
parent 3641d33cc8
commit 53c415d947
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 2 additions and 2 deletions

View file

@ -461,7 +461,7 @@ def nwb_file(tmp_output_dir, nwb_file_base, request: pytest.FixtureRequest) -> P
since there's not really a reason to since there's not really a reason to
""" """
nwb_path = tmp_output_dir / "test_nwb.nwb" nwb_path = tmp_output_dir / "test_nwb.nwb"
if nwb_path.exists() and not request.config.getoption('--clean'): if nwb_path.exists() and not request.config.getoption("--clean"):
return nwb_path return nwb_path
nwbfile = nwb_file_base nwbfile = nwb_file_base

View file

@ -8,7 +8,7 @@ import pytest
def tmp_output_dir(request: pytest.FixtureRequest) -> Path: def tmp_output_dir(request: pytest.FixtureRequest) -> Path:
path = Path(__file__).parent.resolve() / "__tmp__" path = Path(__file__).parent.resolve() / "__tmp__"
if path.exists(): if path.exists():
if request.config.getoption('--clean'): if request.config.getoption("--clean"):
shutil.rmtree(path) shutil.rmtree(path)
else: else:
for subdir in path.iterdir(): for subdir in path.iterdir():