Skip to content

Commit

Permalink
Sort code list elements in tests_doc_usage_structure
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jul 19, 2019
1 parent e917700 commit 8936ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_docs.py
Expand Up @@ -137,7 +137,7 @@ def test_doc_usage_structure():
assert sdmx.to_pandas(dsd.dimensions) == ['FREQ', 'CURRENCY',
'CURRENCY_DENOM', 'EXR_TYPE', 'EXR_SUFFIX', 'TIME_PERIOD']

cl = sdmx.to_pandas(msg2.codelist['CL_CURRENCY']).head()
cl = sdmx.to_pandas(msg2.codelist['CL_CURRENCY']).sort_index()
expected = pd.Series({
'ADF': 'Andorran Franc (1-1 peg to the French franc)',
'ADP': 'Andorran Peseta (1-1 peg to the Spanish peseta)',
Expand All @@ -146,7 +146,7 @@ def test_doc_usage_structure():
'AFN': 'Afghanistan, Afghanis',
}, name='Currency code list') \
.rename_axis('CL_CURRENCY')
assert_pd_equal(cl, expected)
assert_pd_equal(cl.head(), expected)


@pytest.mark.remote_data
Expand Down

0 comments on commit 8936ccf

Please sign in to comment.