Skip to content

Commit

Permalink
Update tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
OFR-IIASA committed Jan 26, 2022
1 parent e95689b commit 6f994a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions message_ix/tests/test_emission_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_bound_emission_pool_lo(test_mp):
"type_emission": "GHG",
"type_tec": "all",
"year": [720],
"lvl": [33.075572],
"lvl": [52.80722057294146],
"mrg": 0.0,
}
)
Expand Down Expand Up @@ -335,12 +335,15 @@ def test_bound_emission_pool_up_removal(test_mp):
obs = s.set("is_bound_emission_pool_up")
pdt.assert_frame_equal(exp, obs, check_dtype=False)

# Esnure that is_ set is removed when removing parameter
# Ensure that is_ set is removed when removing parameter
s.remove_solution()
s.check_out()
s.remove_par("bound_emission_pool_up", df)
s.commit("bound_emission_poll removed")

# Solve
s.solve()

obs = s.set("is_bound_emission_pool_up")
assert obs.empty is True

Expand Down

0 comments on commit 6f994a7

Please sign in to comment.