Skip to content

Commit

Permalink
south sudan in de and es
Browse files Browse the repository at this point in the history
  • Loading branch information
maylis baschet committed Jul 20, 2021
1 parent 452d903 commit 2346a0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions geoconvert/data/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"republik kongo": "CG", # de
"republica do congo": "CG", # pt
"congo": "CG", # en, fr
# make sure we never mistake it for SD
"south sudan": "SS", # en
"sudsudan": "SS", # de
"sudan del sur": "SS", # es
}


Expand Down Expand Up @@ -734,7 +737,6 @@
"st vincent und die grenadinen": "VC",
"sudan": "SD",
"sudafrika": "ZA",
"sudsudan": "SS",
"suriname": "SR",
"swasiland": "SZ",
"syrien": "SY",
Expand Down Expand Up @@ -1247,7 +1249,6 @@
"sri lanka": "LK",
"esuatini": "SZ",
"sudan": "SD",
"sudan del sur": "SS",
"suecia": "SE",
"suiza": "CH",
"surinam": "SR",
Expand Down
2 changes: 1 addition & 1 deletion test_geoconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def test_address_to_subdivision_code(self, input_data, kwargs, expected):
("1196 Voie Camillien-Houde, Montréal, QC H3H 1A1, Canada", "CA"),
("Los Angeles, CA\nUnited States", "US"),
("Cabul, Afeganistão", "AF"),
("Try to find South Sudan in a address", "SS"),
("Try to find South Sudan in an address", "SS"),
# The country code can be found using the capital name in any available language
("Kairo", "EG"),
("Paris", "FR"),
Expand Down

0 comments on commit 2346a0e

Please sign in to comment.