Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/test_osm_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def test_calc_without_border_countries_input_country(self):
self.process_and_check_border_countries(
'china', False, {'china': {}}, 'country')

# US regions
self.process_and_check_border_countries(
'us/texas', False, {'us_texas': {}}, 'country')

# malta,liechtenstein
self.process_and_check_border_countries(
'malta,liechtenstein', False, {'malta': {}, 'liechtenstein': {}}, 'country')
Expand Down
2 changes: 1 addition & 1 deletion wahoomc/osm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def calc_border_countries(self):
# set the to-be-processed country as border country
else:
for country in self.o_geofabrik.wanted_maps:
self.border_countries[country] = {}
self.border_countries[country.replace('/', '_')] = {}

def calc_country_name(self):
"""
Expand Down
Loading