Commit 8da1d471 authored by Matthias Bernt's avatar Matthias Bernt
Browse files

fix unit test

the extraction does not create the `crate/` dir automatically, but just
extracts to the given path.
parent 8769771b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -740,12 +740,12 @@ def test_export_invocation_to_ro_crate_archive(tmp_path):
    workflow_invocation = _setup_invocation(app)

    crate_zip = tmp_path / "crate.zip"
    crate_directory = tmp_path / "crate"
    with store.ROCrateArchiveModelExportStore(crate_zip, app=app, export_files="symlink") as export_store:
        export_store.export_workflow_invocation(workflow_invocation)
    with CompressedFile(crate_zip) as compressed_file:
        assert compressed_file.file_type == "zip"
        compressed_file.extract(tmp_path)
    crate_directory = tmp_path / "crate"
        compressed_file.extract(crate_directory)
    validate_invocation_crate_directory(crate_directory)