]> git.openstreetmap.org Git - nominatim.git/blobdiff - tests/steps/api_setup.py
only address features can be linked with placex
[nominatim.git] / tests / steps / api_setup.py
index dc39a3bc9069d4e071bc8991ef8896cfbc48475b..35443cdba6e1dabc3584697827974c379a7278c9 100644 (file)
@@ -104,7 +104,7 @@ def api_setup_reverse(step, fmt, lat, lon):
     api_call('reverse')
 
 @step(u'looking up place ([NRW]?\d+)')
-def api_setup_details(step, obj):
+def api_setup_details_reverse(step, obj):
     if obj[0] in ('N', 'R', 'W'):
         # an osm id
         world.params['osm_type']  = obj[0]
@@ -122,3 +122,7 @@ def api_setup_details(step, obj):
     else:
         world.params['place_id']  = obj
     api_call('details')
+
+@step(u'sending an API call (\w+)')
+def api_general_call(step, call):
+    api_call(call)