Skip to content

Commit

Permalink
[DEV] Fix unittests & update unittest files after changes of release …
Browse files Browse the repository at this point in the history
…v3.0.0 (#164)

* adjust unittests, changed by #158

* add macOS unittest files, changed by #158

* add Windows unittest files, changed by #158
  • Loading branch information
treee111 authored Nov 7, 2022
1 parent 4ec269e commit b473a97
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 4 deletions.
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

0 comments on commit b473a97

Please sign in to comment.