X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/59be7846e9b5b509c7f1912e2001e25e82c42ba5..64883cc917c312908c3c04c6d1ed423181d26c8a:/tests/steps/api_setup.py diff --git a/tests/steps/api_setup.py b/tests/steps/api_setup.py index fcaa39a2..b5a098fc 100644 --- a/tests/steps/api_setup.py +++ b/tests/steps/api_setup.py @@ -123,6 +123,13 @@ def api_setup_details(step, obj): world.params['place_id'] = obj api_call('details') +@step(u'looking up (\w+) places ((?:[a-z]\d+,*)+)') +def api_setup_lookup(step, fmt, ids): + world.params['osm_ids'] = ids + if fmt and fmt.strip(): + world.params['format'] = fmt.strip() + api_call('lookup') + @step(u'sending an API call (\w+)') def api_general_call(step, call): api_call(call)