We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1563b7a commit b97dd05Copy full SHA for b97dd05
tests/conftest.py
@@ -1,3 +1,4 @@
1
+import shutil
2
from pathlib import Path
3
4
import pytest
@@ -32,7 +33,9 @@ def client(httpserver):
32
33
34
35
@pytest.fixture
-def file_client():
36
+def file_client(tmp_path):
37
'''Instance of `dicomweb_client.api.DICOMwebClient`.'''
- url = f'file://{DATA_ROOT}'
38
+ src_dir = Path(DATA_ROOT).resolve().joinpath('test_files')
39
+ shutil.copytree(src_dir, tmp_path, dirs_exist_ok=True)
40
+ url = f'file://{tmp_path}'
41
return DICOMfileClient(url, recreate_db=True, in_memory=True)
0 commit comments