1
0
Fork 0

include some new shoplike upstream

This commit is contained in:
Mateusz Konieczny 2024-10-04 11:38:21 +02:00
parent d9e0057004
commit 5b3f05d4e4
2 changed files with 13 additions and 6 deletions

View file

@ -183,12 +183,11 @@ def do_not_remind_that_this_tagging_may_be_worth_supporting():
notified_about_tag['shop'].append('truck_parts') # seems to be from NSI? https://wiki.openstreetmap.org/wiki/Tag:shop%3Dtruck_parts has no page
# kind also shoplike? I want to support them
notified_about_tag['man_made'].append('charge_point')
notified_about_tag['amenity'].append('music_venue')
notified_about_tag['amenity'].append('prep_school')
notified_about_tag['amenity'].append('conference_centre')
# shoplike in sense you can get food there I guess?
notified_about_tag['amenity'].append('food_sharing')
# requires change to osm_bot_abstraction_layer.tag_knowledge.is_shoplike
# should be done before planet file is processed
# to avoid situation where OSM-processing skipped such POI
# and ATP processing included them
pass
# not shoplike but having it would be nice
notified_about_tag['amenity'].append('community_centre')

View file

@ -0,0 +1,8 @@
import unittest
import qa
import osm_bot_abstraction_layer.tag_knowledge as tag_knowledge
class ShoplikeTests(unittest.TestCase):
def test_basic_passing_shoplike(self):
self.assertEqual(tag_knowledge.is_shoplike({"shop": "supermarket"}), True)