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 19a809c commit 14634bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion tests/test_process_ei310_cutoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@ 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(
scenarios=scenarios,
source_db=f"ecoinvent-{ei_version}-{system_model}",
source_version=ei_version,
key=key,
system_model=system_model,
biosphere_name=f"ecoinvent-{ei_version}-biosphere",
biosphere_name=[db for db in bw2data.databases if "biosphere" in db][0],
)

ndb.update()
Expand Down
2 changes: 0 additions & 2 deletions tests/test_process_ei310_cutoff_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ def test_brightway():
)

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

ndb = NewDatabase(
scenarios=scenarios,
Expand Down

0 comments on commit 14634bb

Please sign in to comment.