Skip to content

Commit

Permalink
get unittest constants working again
Browse files Browse the repository at this point in the history
- applied changes from #206 b8f4d16 and #201 f6a4b99
  • Loading branch information
treee111 committed Nov 2, 2023
1 parent cedcd30 commit df4de92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ def test_translate_tags_to_keep_full_macos(self):
Test translating tags to keep from universal format to macOS // all "tags to keep"
"""
tags = ['access', 'area=yes', 'bicycle', 'bridge', 'foot=ft_yes, foot_designated',
'amenity=fuel, cafe, drinking_water', 'shop=bakery, bicycle',
'amenity=fuel, cafe, drinking_water, shelter', 'shop=bakery, bicycle',
'highway=abandoned, bus_guideway, disused, bridleway, byway, construction, cycleway, footway, living_street, motorway, motorway_link, path, pedestrian, primary, primary_link, residential, road, secondary, secondary_link, service, steps, tertiary, tertiary_link, track, trunk, trunk_link, unclassified',
'natural=coastline, nosea, sea, beach, land, scrub, water, wetland, wood',
'landuse=forest, commercial, industrial, residential, retail',
'leisure=park, nature_reserve', 'railway=rail, tram, station, stop',
'surface', 'tracktype', 'tunnel', 'waterway=canal, drain, river, riverbank', 'wood=deciduous']
'surface', 'tracktype', 'tunnel', 'waterway=canal, drain, river, riverbank, stream', 'wood=deciduous', 'tourism=alpine_hut']

transl_tags = translate_tags_to_keep(use_repo=True)
self.assertEqual(tags, transl_tags)
Expand All @@ -98,7 +98,8 @@ def test_translate_tags_to_keep_full_win(self):
"""
Test translating tags to keep from universal format to Windows // all "tags to keep"
"""
tags_win = 'access= area=yes bicycle= bridge= foot=ft_yes =foot_designated amenity=fuel =cafe =drinking_water shop=bakery =bicycle highway=abandoned =bus_guideway =disused =bridleway =byway =construction =cycleway =footway =living_street =motorway =motorway_link =path =pedestrian =primary =primary_link =residential =road =secondary =secondary_link =service =steps =tertiary =tertiary_link =track =trunk =trunk_link =unclassified natural=coastline =nosea =sea =beach =land =scrub =water =wetland =wood landuse=forest =commercial =industrial =residential =retail leisure=park =nature_reserve railway=rail =tram =station =stop surface= tracktype= tunnel= waterway=canal =drain =river =riverbank wood=deciduous'
self.maxDiff = None
tags_win = 'access= area=yes bicycle= bridge= foot=ft_yes =foot_designated amenity=fuel =cafe =drinking_water =shelter shop=bakery =bicycle highway=abandoned =bus_guideway =disused =bridleway =byway =construction =cycleway =footway =living_street =motorway =motorway_link =path =pedestrian =primary =primary_link =residential =road =secondary =secondary_link =service =steps =tertiary =tertiary_link =track =trunk =trunk_link =unclassified natural=coastline =nosea =sea =beach =land =scrub =water =wetland =wood landuse=forest =commercial =industrial =residential =retail leisure=park =nature_reserve railway=rail =tram =station =stop surface= tracktype= tunnel= waterway=canal =drain =river =riverbank =stream wood=deciduous tourism=alpine_hut'

transl_tags = translate_tags_to_keep(
sys_platform='Windows', use_repo=True)
Expand Down

0 comments on commit df4de92

Please sign in to comment.