From ee90116178709c36cc65614cbbd355e5543c37bf Mon Sep 17 00:00:00 2001 From: TLAIDI Date: Fri, 28 Jul 2023 17:59:12 +0200 Subject: [PATCH] fix(api): fix failed tests (#1646) --- tests/storage/business/test_export.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/storage/business/test_export.py b/tests/storage/business/test_export.py index 1764807418..59f538770e 100644 --- a/tests/storage/business/test_export.py +++ b/tests/storage/business/test_export.py @@ -108,7 +108,9 @@ def test_export_flat(tmp_path: Path): study = RawStudy(id="id", path=root) path_study = Path(study.path) - export_study_flat(path_study, tmp_path / "copy_with_output", outputs=True) + export_study_flat( + path_study, tmp_path / "copy_with_output", study_factory, outputs=True + ) copy_with_output_hash = dirhash(tmp_path / "copy_with_output", "md5") @@ -116,7 +118,10 @@ def test_export_flat(tmp_path: Path): path_study = Path(study.path) export_study_flat( - path_study, tmp_path / "copy_without_output", outputs=False + path_study, + tmp_path / "copy_without_output", + study_factory, + outputs=False, ) copy_without_output_hash = dirhash(tmp_path / "copy_without_output", "md5")