mirror of
https://codeberg.org/matkoniecz/list_how_openstreetmap_can_be_improved_with_alltheplaces_data.git
synced 2025-05-13 05:03:09 +02:00
add two more tests for unwanted shadowing
This commit is contained in:
parent
4a14a9ca34
commit
d1bab12968
1 changed files with 6 additions and 0 deletions
|
@ -705,6 +705,12 @@ class CanonicalValueTests(unittest.TestCase):
|
|||
def test_unspecific_shop_more_important_than_natural_value(self):
|
||||
self.assertEqual(config.the_same_feature_type({'shop': 'yes'}, {'natural': 'gibberish', 'shop': 'yes'}), True)
|
||||
|
||||
def test_unspecific_shop_more_important_than_building_part_tagging(self):
|
||||
self.assertEqual(config.the_same_feature_type({'shop': 'yes'}, {'building:part': 'tower', 'shop': 'yes'}), True)
|
||||
|
||||
def test_specific_shop_more_important_than_building_part_tagging(self):
|
||||
self.assertEqual(config.the_same_feature_type({'shop': 'pet'}, {'building:part': 'tower', 'shop': 'pet'}), True)
|
||||
|
||||
def test_library_has_no_new_main_keys(self):
|
||||
# TODO: detect whether all entries filtered from OSM have classification distinct from "?" ?
|
||||
knowingly_skipped = ['man_made', 'traffic_calming', 'barrier', 'advertising', 'highway', 'natural', 'power','landuse', 'boundary', 'building', 'building:part', 'landcover', 'waterway', 'cemetery']
|
||||
|
|
Loading…
Add table
Reference in a new issue