1
0
Fork 0

add two more tests for unwanted shadowing

This commit is contained in:
Mateusz Konieczny 2025-01-30 15:43:37 +01:00
parent 4a14a9ca34
commit d1bab12968

View file

@ -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']