From 19a809c10f806b7210fb76726023faaf0a208d09 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Fri, 29 Nov 2024 18:43:26 +0100 Subject: [PATCH] Fix tests --- tests/test_process_ei310_cutoff_datapackage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_process_ei310_cutoff_datapackage.py b/tests/test_process_ei310_cutoff_datapackage.py index d5ccfd51..60b69d63 100644 --- a/tests/test_process_ei310_cutoff_datapackage.py +++ b/tests/test_process_ei310_cutoff_datapackage.py @@ -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, @@ -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(