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 committed Jul 28, 2023
1 parent 7dc032b commit ee90116
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 @@ -108,15 +108,20 @@ 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

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")
Expand Down

0 comments on commit ee90116

Please sign in to comment.