Skip to content

Commit

Permalink
Fix tests for missing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Nov 7, 2023
1 parent 7835dcf commit c919bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_get_report(release):
assert md5(filepath) == "4f9e6b2a9c2022ba815fb28813b8b26e"
assert PdfReader(filepath)

metadata = release.storage.catalogue[filename.replace(".zip", "")]
metadata = release.storage.catalogue[filename]
assert metadata["extracted"]
assert metadata["created"]

Expand All @@ -89,7 +89,7 @@ def test_get_extra(release):
@pytest.mark.slow
def test_get_release(release):
filepath = release.get_release("3.5", "cutoff", ReleaseType.ecospold)
metadata = release.storage.catalogue[filepath.name]
metadata = release.storage.catalogue["ecoinvent 3.5_cutoff_ecoSpold02.7z"]

assert filepath.is_dir()
assert len(list((Path(metadata["path"]) / "datasets").iterdir())) == 16022
Expand Down

0 comments on commit c919bfd

Please sign in to comment.