Skip to content

Commit

Permalink
Add ability to request regions with synonyms from IXMP web API
Browse files Browse the repository at this point in the history
- uncomment test
  • Loading branch information
zikolach committed Nov 18, 2019
1 parent 821eb68 commit 54ed36c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_iiasa.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ def test_regions():
obs = conn.regions().values
assert 'World' in obs

# API changes to return synonyms not yet deployed to SR15
# def test_regions_with_synonyms():
# conn = iiasa.Connection('IXSE_SR15')
# obs = conn.regions(include_synonyms=True)
# assert 'World' in obs

def test_regions_with_synonyms():
conn = iiasa.Connection('IXSE_SR15')
obs = conn.regions(include_synonyms=True)
assert 'synonym_0' in obs.columns
assert (obs[obs.region == 'R5ROWO']
.synonym_0 == 'Rest of the World (R5)').all()


def test_metadata():
Expand Down

0 comments on commit 54ed36c

Please sign in to comment.