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 some plans for future tests
This commit is contained in:
parent
b9e3b4ecad
commit
c16393f856
1 changed files with 8 additions and 0 deletions
|
@ -197,6 +197,11 @@ class CanonicalValueTests(unittest.TestCase):
|
|||
self.assertEqual(config.canonical_feature({'amenity': 'fast_food'}), "eatery")
|
||||
self.assertEqual(config.canonical_feature({'amenity': 'restaurant'}), "eatery")
|
||||
|
||||
# TODO: deal with shop=fuel fuel=
|
||||
# TODO: deal with shop=trade trade=
|
||||
# TODO: find more such cascading shops
|
||||
|
||||
|
||||
def test_unified_agricultural_shop(self):
|
||||
self.assertEqual(config.canonical_feature({'shop': 'tractor'}), config.canonical_feature({'shop': 'agrarian'}))
|
||||
self.assertEqual(config.canonical_feature({'shop': 'trade', 'trade': 'agricultural_equipment'}), config.canonical_feature({'shop': 'agrarian'}))
|
||||
|
@ -204,3 +209,6 @@ class CanonicalValueTests(unittest.TestCase):
|
|||
def test_matching_specified_vending_machines_to_empty(self):
|
||||
self.assertEqual(config.canonical_feature({'amenity': 'vending_machine', 'vending': 'umbrellas'}), config.canonical_feature({'amenity': 'vending_machine'}))
|
||||
self.assertEqual(config.canonical_feature({'amenity': 'vending_machine', 'vending': 'candles'}), config.canonical_feature({'amenity': 'vending_machine'}))
|
||||
|
||||
#TODO: reject quality for mismatching vending machines
|
||||
# yes, combined with previous one it means it cannot be transitory
|
||||
|
|
Loading…
Add table
Reference in a new issue