diff --git a/adit/dicom_web/tests/integration/conftest.py b/adit/dicom_web/tests/integration/conftest.py index 64a762a2..8280f6fe 100644 --- a/adit/dicom_web/tests/integration/conftest.py +++ b/adit/dicom_web/tests/integration/conftest.py @@ -54,7 +54,7 @@ def extended_data_sheet(): @pytest.fixture def test_dicoms(): - test_dicoms_path = settings.BASE_DIR / "samples" / "dicoms" + test_dicoms_path = settings.BASE_DIR / "samples" / "dicoms" / "1001" dicoms = [] for root, _, files in os.walk(test_dicoms_path): if len(files) != 0: diff --git a/adit/dicom_web/tests/integration/test_stowrs.py b/adit/dicom_web/tests/integration/test_stowrs.py index 1518cac4..caf9a49c 100644 --- a/adit/dicom_web/tests/integration/test_stowrs.py +++ b/adit/dicom_web/tests/integration/test_stowrs.py @@ -1,5 +1,6 @@ import pydicom import pytest +from dicomweb_client import DICOMwebClient @pytest.mark.integration @@ -10,7 +11,7 @@ def test_stow( create_dicom_web_client, test_dicoms, ): - orthanc2_client = create_dicom_web_client(channels_live_server.url, "ORTHANC2") + orthanc2_client: DICOMwebClient = create_dicom_web_client(channels_live_server.url, "ORTHANC2") studies = orthanc2_client.search_for_studies() assert len(studies) == 0, "Orthanc2 should be empty." diff --git a/adit/dicom_web/tests/integration/test_wadors.py b/adit/dicom_web/tests/integration/test_wadors.py index 7c4a1b5a..acb27856 100644 --- a/adit/dicom_web/tests/integration/test_wadors.py +++ b/adit/dicom_web/tests/integration/test_wadors.py @@ -1,5 +1,6 @@ import pydicom import pytest +from dicomweb_client import DICOMwebClient @pytest.mark.integration @@ -53,7 +54,7 @@ def test_wado_series( create_dicom_web_client, extended_data_sheet, ): - orthanc1_client = create_dicom_web_client(channels_live_server.url, "ORTHANC1") + orthanc1_client: DICOMwebClient = create_dicom_web_client(channels_live_server.url, "ORTHANC1") study_uid = list(extended_data_sheet["StudyInstanceUID"])[0] series_uid = list(