From aa12b42dbd1ca36d2d5729368f1d4171179e338e 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 e45f68dfcd..04f47b6d51 100644 --- a/tests/storage/business/test_export.py +++ b/tests/storage/business/test_export.py @@ -107,11 +107,16 @@ 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") assert root_hash == copy_with_output_hash - export_study_flat(path_study, tmp_path / "copy_without_output", outputs=False) + export_study_flat( + path_study, + tmp_path / "copy_without_output", + study_factory, + outputs=False, + ) copy_without_output_hash = dirhash(tmp_path / "copy_without_output", "md5") assert root_without_output_hash == copy_without_output_hash