Skip to content

Commit

Permalink
Update tests to reflect 2023 WEO data being used
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey committed Apr 25, 2024
1 parent 55a5919 commit 94d9675
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_get_weo_data() -> None:
result = get_weo_data()

# Check that the minimum and maximum years are correct
assert min(result.year) == "2021"
assert min(result.year) == "2022"
assert max(result.year) == "2050"

# Check that the regions are correct
Expand All @@ -37,11 +37,11 @@ def test_get_weo_data() -> None:

# Check one sample value
assert np.isclose(
1324.68,
1238.018,
result.query(
"weo_technology == 'steam_coal_subcritical'"
"and weo_region == 'United States'"
"and year == '2021'"
"and year == '2022'"
"and cost_type == 'inv_cost'"
)["value"].item(),
)
Expand Down

0 comments on commit 94d9675

Please sign in to comment.