Skip to content

Commit

Permalink
Merge pull request #13 from codeforIATI/add-missing-currencies
Browse files Browse the repository at this point in the history
Add missing currencies
  • Loading branch information
markbrough authored Nov 8, 2023
2 parents 807310a + 6308a53 commit 94c22c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions source/eurozone.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GERMANY,DE,DEM
GREECE,GR,GRD
IRELAND,IE,IEP
ITALY,IT,ITL
KOSOVO,XK,EUR
LATVIA,LV,LVL
LITHUANIA,LT,LTL
LUXEMBOURG,LU,LUF
Expand Down
10 changes: 10 additions & 0 deletions source/missing.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ LAO PEOPLE'S DEMOCRATIC REPUBLIC (THE),LA,LAK
NETHERLANDS ANTILLES,AN,NLG
SYRIAN ARAB REPUBLIC (THE),SY,SYP
"TANZANIA, THE UNITED REPUBLIC OF",TZ,TZS
Curacao & St. Maarten,1C_355,
Former Czechoslovakia,CSH,CSJ
East Germany,DE2,DDM
Former U.S.S.R.,SUH,SUR
Yemen Arab Rep.,1C_473,YDD
Yemen, P.D. Rep.,1C_459,YDD
Former Yugoslavia,YUC,YUN
Eastern Caribbean Currency Union,5Y,XCD
WAEMU (West African Economic and Monetary Union),7A,XOF
Turkey,TR,TRY
6 changes: 3 additions & 3 deletions test_one_currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_currency_list_eurozone_countries(self, countries_currencies):
Check that the list of Eurozone countries/currencies is as expected.
"""
countries = [k for k, v in countries_currencies.items() if v == 'EUR']
assert countries == ['AX', 'AD', 'MC', 'ME', 'U2']
# Aland Islands, Andorra, Monaco, Montenegro all use EUR but are not members
assert len([v for k, v in countries_currencies.items() if v == 'EUR']) == 5
assert countries == ['AX', 'AD', 'XK', 'MC', 'ME', 'U2']
# Aland Islands, Andorra, Kosovo, Monaco, Montenegro all use EUR but are not members
assert len([v for k, v in countries_currencies.items() if v == 'EUR']) == 6

0 comments on commit 94c22c7

Please sign in to comment.