mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
configurable error formatting and content type in result formatter
This commit is contained in:
@@ -127,7 +127,7 @@ class TestAdaptorRaiseError:
|
||||
err = self.run_raise_error('TEST', 404)
|
||||
|
||||
assert self.adaptor.content_type == 'text/plain; charset=utf-8'
|
||||
assert err.msg == 'TEST'
|
||||
assert err.msg == 'ERROR 404: TEST'
|
||||
assert err.status == 404
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user