Skip to content

Commit

Permalink
Papua New Guinea in special countries (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: maylis baschet <[email protected]>
  • Loading branch information
MayBaMay and maylis baschet authored Sep 22, 2021
1 parent 399ca54 commit e052ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoconvert/data/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"sudan del sur": "SS", # es
# Make sure we never mistake it for JE
"new jersey": "US",
# Make sure we never mistake it for GN
"papua new guinea": "PG"
}


Expand Down
2 changes: 2 additions & 0 deletions test_geoconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@ def test_address_to_subdivision_code(self, input_data, kwargs, expected):
("Try to find South Sudan in an address", "SS"),
("650 Great Rd, Princeton, New Jersey", "US"),
("St Peter, Jersey JE1 1BY, Jersey", "JE"),
('East Asia and Pacific Region: Papua New Guinea', "PG"),
('N1, Conakry, Guinea', "GN"),
# The country code can be found using the capital name in any available language
("Kairo", "EG"),
("Paris", "FR"),
Expand Down

0 comments on commit e052ebb

Please sign in to comment.