more API tests (mostly for user errors)

This commit is contained in:
Sarah Hoffmann
2017-09-19 23:06:31 +02:00
parent af74c037f4
commit 81a7ea36db
4 changed files with 42 additions and 1 deletions

View File

@@ -349,7 +349,7 @@ def website_search_request(context, fmt, query, addr):
context.response = SearchResponse(outp, outfmt, status)
@when(u'sending (?P<fmt>\S+ )?reverse coordinates (?P<lat>[0-9.-]+)?,(?P<lon>[0-9.-]+)?')
@when(u'sending (?P<fmt>\S+ )?reverse coordinates (?P<lat>.+)?,(?P<lon>.+)?')
def website_reverse_request(context, fmt, lat, lon):
params = {}
if lat is not None: