mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2025-01-09 21:54:27 +00:00
lint
This commit is contained in:
parent
3641d33cc8
commit
53c415d947
2 changed files with 2 additions and 2 deletions
2
nwb_linkml/tests/fixtures/nwb.py
vendored
2
nwb_linkml/tests/fixtures/nwb.py
vendored
|
@ -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
|
||||||
|
|
2
nwb_linkml/tests/fixtures/paths.py
vendored
2
nwb_linkml/tests/fixtures/paths.py
vendored
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue