From 046481e321e720a2a9f202c3f262f45082d3115f Mon Sep 17 00:00:00 2001 From: Amanpreet Singh Saimbhi Date: Thu, 12 Dec 2024 18:10:09 +0000 Subject: [PATCH] minor change for pytest --- app/routing/route_studies.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/routing/route_studies.py b/app/routing/route_studies.py index 92b7958..b72ae12 100644 --- a/app/routing/route_studies.py +++ b/app/routing/route_studies.py @@ -49,9 +49,7 @@ def route_studies(pending_series: Dict[str, float]) -> None: # TODO: Handle studies that exceed the "force completion" timeout in the "CONDITION_RECEIVED_SERIES" mode studies_ready = {} with os.scandir(config.mercure.studies_folder) as it: - if isinstance(it,pyfakefs.fake_scandir.ScanDirIter): - # prevent pyfakefs issue - it = list(it) # type: ignore + it = list(it) # type: ignore for entry in it: if entry.is_dir() and not is_study_locked(entry.path): if is_study_complete(entry.path, pending_series):