Skip to content

Commit

Permalink
minor change for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-saimbhi committed Dec 12, 2024
1 parent 92dda27 commit 046481e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/routing/route_studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 046481e

Please sign in to comment.