Skip to content

Commit

Permalink
fix unittests according to new POI constants
Browse files Browse the repository at this point in the history
  • Loading branch information
treee111 committed May 7, 2022
1 parent b7fc08d commit 08ff327
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def test_translate_tags_to_keep_simple_macos(self):
"""
Test translating tags to keep from universal format to macOS
"""

tags = ['access', 'area=yes']

transl_tags = translate_tags_to_keep()
Expand All @@ -101,7 +100,6 @@ def test_translate_tags_to_keep_simple_win(self):
"""
Test translating tags to keep from universal format to Windows
"""

tags_win = 'access= area=yes'

transl_tags = translate_tags_to_keep(sys_platform='Windows')
Expand All @@ -112,7 +110,6 @@ def test_translate_tags_to_keep_adv_macos(self):
"""
Test translating tags to keep from universal format to macOS
"""

tags = ['access', 'area=yes', 'bicycle',
'bridge', 'foot=ft_yes, foot_designated']

Expand All @@ -124,7 +121,6 @@ def test_translate_tags_to_keep_adv_win(self):
"""
Test translating tags to keep from universal format to Windows
"""

tags_win = 'access= area=yes bicycle= bridge= foot=ft_yes =foot_designated'

transl_tags = translate_tags_to_keep(sys_platform='Windows')
Expand All @@ -135,10 +131,11 @@ 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',
'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',
'leisure=park, nature_reserve', 'railway=abandoned, bus_guideway, disused, funicular, light_rail, miniature, narrow_gauge, preserved, rail, subway, tram',
'surface', 'tracktype', 'tunnel', 'waterway=canal, drain, river, riverbank', 'wood=deciduous']

Expand All @@ -150,8 +147,7 @@ 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 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 leisure=park =nature_reserve railway=abandoned =bus_guideway =disused =funicular =light_rail =miniature =narrow_gauge =preserved =rail =subway =tram surface= tracktype= tunnel= waterway=canal =drain =river =riverbank wood=deciduous'
tags_win = 'access= area=yes bicycle= bridge= foot=ft_yes =foot_designated amenity=fuel =cafe =drinking_water shop=bakery 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 leisure=park =nature_reserve railway=abandoned =bus_guideway =disused =funicular =light_rail =miniature =narrow_gauge =preserved =rail =subway =tram surface= tracktype= tunnel= waterway=canal =drain =river =riverbank wood=deciduous'

transl_tags = translate_tags_to_keep(sys_platform='Windows')
self.assertEqual(tags_win, transl_tags)
Expand All @@ -161,7 +157,6 @@ def test_translate_name_tags_to_keep_full_macos(self):
"""
Test translating name tags to keep from universal format to Windows // all "name tags to keep"
"""

names_tags = ['admin_level=2', 'area=yes', 'mountain_pass', 'natural',
'place=city, hamlet, island, isolated_dwelling, islet, locality, suburb, town, village, country']

Expand Down

0 comments on commit 08ff327

Please sign in to comment.