Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Nov 29, 2024
1 parent 8e3a9da commit 19a809c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_process_ei310_cutoff_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_brightway():
clear_inventory_cache()

if f"ecoinvent-{ei_version}-{system_model}" not in bw2data.databases:
print("Importing ecoinvent")
bw2io.import_ecoinvent_release(
version=ei_version,
system_model=system_model,
Expand All @@ -41,6 +42,8 @@ def test_brightway():
biosphere_name=f"ecoinvent-{ei_version}-biosphere",
)

bw2data.projects.set_current(f"ecoinvent-{ei_version}-{system_model}")
print(bw2data.projects.current)
print(bw2data.databases)

ndb = NewDatabase(
Expand Down

0 comments on commit 19a809c

Please sign in to comment.