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
one more mismatch is match
This commit is contained in:
parent
70e2d77437
commit
dc1353ca98
2 changed files with 26 additions and 0 deletions
|
@ -6654,6 +6654,8 @@ def clear_type_conflicts():
|
|||
|
||||
def matching_rather_than_type_conflict():
|
||||
return [
|
||||
'shop=cosmetics vs shop=perfumery',
|
||||
|
||||
'shop=appliance vs shop=electronics',
|
||||
|
||||
'furniture_shop vs interior_stuff_shop',
|
||||
|
|
|
@ -699,6 +699,30 @@ class CanonicalValueTests(unittest.TestCase):
|
|||
'source:building': 'BDOT'
|
||||
}), True)
|
||||
|
||||
def test_perfumery_and_cosmetics_are_nearly_the_same(self):
|
||||
self.assertEqual(config.the_same_feature_type({'name': 'Rituals', 'shop': 'perfumery'},
|
||||
{
|
||||
'@source_uri': 'https://www.rituals.com/de-de/store-detail?store=Ravensburg',
|
||||
'@spider': 'rituals',
|
||||
'shop': 'cosmetics',
|
||||
'addr:street_address': 'Marienplatz 51',
|
||||
'addr:city': 'Ravensburg',
|
||||
'addr:state': 'Baden-Wuerttemberg',
|
||||
'addr:postcode': '88212',
|
||||
'addr:country': 'DE',
|
||||
'phone': '+49 751 56998722',
|
||||
'website': 'https://www.rituals.com/de-de/store-detail?store=Ravensburg',
|
||||
'contact:facebook': 'https://www.facebook.com/ritualscosmetics',
|
||||
'email': 'ravensburg.marienplatz@rituals.com',
|
||||
'brand': 'Rituals',
|
||||
'brand:wikidata': 'Q62874140',
|
||||
'atp_ref': 'Ravensburg',
|
||||
'opening_hours_in_atp_format': 'Mo-Sa 09:30-18:00',
|
||||
'atp_listing_name': 'Ravensburg',
|
||||
'name': 'Rituals'
|
||||
}), True)
|
||||
|
||||
|
||||
def test_match_tile_shops_tagged_in_a_different_way(self):
|
||||
self.assertEqual(config.the_same_feature_type({'shop': 'trade', 'trade': 'tiles'}, {'shop': 'trade'}), True)
|
||||
self.assertEqual(config.the_same_feature_type({'shop': 'trade', 'trade': 'tiles'}, {'shop': 'tiles'}), True)
|
||||
|
|
Loading…
Add table
Reference in a new issue