Skip to content

Commit 8da1d47

Browse files
fix unit test
the extraction does not create the `crate/` dir automatically, but just extracts to the given path.
1 parent 8769771 commit 8da1d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/data/model/test_model_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,12 @@ def test_export_invocation_to_ro_crate_archive(tmp_path):
740740
workflow_invocation = _setup_invocation(app)
741741

742742
crate_zip = tmp_path / "crate.zip"
743+
crate_directory = tmp_path / "crate"
743744
with store.ROCrateArchiveModelExportStore(crate_zip, app=app, export_files="symlink") as export_store:
744745
export_store.export_workflow_invocation(workflow_invocation)
745746
with CompressedFile(crate_zip) as compressed_file:
746747
assert compressed_file.file_type == "zip"
747-
compressed_file.extract(tmp_path)
748-
crate_directory = tmp_path / "crate"
748+
compressed_file.extract(crate_directory)
749749
validate_invocation_crate_directory(crate_directory)
750750

751751

0 commit comments

Comments
 (0)