Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV] Fix unittests & update unittest files after changes of release v3.0.0 #164

Merged
merged 3 commits into from
Nov 7, 2022
Merged
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
Binary file modified tests/resources/macos/134/89.map
Binary file not shown.
Binary file modified tests/resources/macos/134/89.map.lzma
Binary file not shown.
Binary file modified tests/resources/macos/134/89/merged.osm.pbf
Binary file not shown.
Binary file modified tests/resources/macos/134/89/split-liechtenstein.osm.pbf
Binary file not shown.
Binary file modified tests/resources/macos/138/100.map
Binary file not shown.
Binary file modified tests/resources/macos/138/100.map.lzma
Binary file not shown.
Binary file modified tests/resources/macos/138/100/merged.osm.pbf
Binary file not shown.
Binary file modified tests/resources/macos/138/100/split-malta.osm.pbf
Binary file not shown.
Binary file modified tests/resources/macos/liechtenstein/filtered.o5m.pbf
Binary file not shown.
Binary file modified tests/resources/macos/malta/filtered.o5m.pbf
Binary file not shown.
Binary file modified tests/resources/windows/134/89.map
Binary file not shown.
Binary file modified tests/resources/windows/134/89.map.lzma
Binary file not shown.
Binary file modified tests/resources/windows/134/89/merged.osm.pbf
Binary file not shown.
Binary file modified tests/resources/windows/134/89/split-liechtenstein.osm.pbf
Binary file not shown.
Binary file modified tests/resources/windows/138/100.map
Binary file not shown.
Binary file modified tests/resources/windows/138/100.map.lzma
Binary file not shown.
Binary file modified tests/resources/windows/138/100/merged.osm.pbf
Binary file not shown.
Binary file modified tests/resources/windows/138/100/split-malta.osm.pbf
Binary file not shown.
Binary file modified tests/resources/windows/liechtenstein/filtered.o5m
Binary file not shown.
Binary file modified tests/resources/windows/malta/filtered.o5m
Binary file not shown.
8 changes: 4 additions & 4 deletions tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,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',
'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',
'leisure=park, nature_reserve', 'railway=abandoned, bus_guideway, disused, funicular, light_rail, miniature, narrow_gauge, preserved, rail, subway, tram',
'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']

transl_tags = translate_tags_to_keep()
Expand All @@ -149,7 +149,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 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'
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'

transl_tags = translate_tags_to_keep(sys_platform='Windows')
self.assertEqual(tags_win, transl_tags)
Expand Down