Skip to content

Commit

Permalink
Adapt tests to new pyam version
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Dec 20, 2024
1 parent 57b6868 commit 1a5a066
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions message_ix/tests/test_report.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import re
import sys
from functools import partial
from pathlib import Path

Expand Down Expand Up @@ -204,6 +205,18 @@ def add_tm(df, name="Activity"):

# Variable names were formatted by the callback
reg_var = pd.DataFrame(
[
["seattle", "Activity|canning_plant|production"],
["seattle", "Activity|transport_from_seattle|to_new-york"],
["seattle", "Activity|transport_from_seattle|to_chicago"],
["seattle", "Activity|transport_from_seattle|to_topeka"],
["san-diego", "Activity|canning_plant|production"],
["san-diego", "Activity|transport_from_san-diego|to_new-york"],
["san-diego", "Activity|transport_from_san-diego|to_chicago"],
["san-diego", "Activity|transport_from_san-diego|to_topeka"],
],
columns=["region", "variable"],
) if sys.version_info >= (3, 10) else pd.DataFrame(
[
["san-diego", "Activity|canning_plant|production"],
["san-diego", "Activity|transport_from_san-diego|to_chicago"],
Expand Down

0 comments on commit 1a5a066

Please sign in to comment.