Skip to content

Commit

Permalink
fix(api): fix failed tests (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
TLAIDI authored and laurent-laporte-pro committed Sep 12, 2023
1 parent ab44af5 commit b847594
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/storage/business/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b847594

Please sign in to comment.