X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/261e0cfd5a084dc5de333eda1093a9e7635c4859..81eed0680cd2a8b5c53217ab2996a43ab17f5056:/test/python/api/fake_adaptor.py?ds=sidebyside diff --git a/test/python/api/fake_adaptor.py b/test/python/api/fake_adaptor.py index 1db8c725..d886d34e 100644 --- a/test/python/api/fake_adaptor.py +++ b/test/python/api/fake_adaptor.py @@ -43,10 +43,13 @@ class FakeAdaptor(glue.ASGIAdaptor): return FakeError(msg, status) - def create_response(self, status, output): + def create_response(self, status, output, num_results): return FakeResponse(status, output, self.content_type) + def base_uri(self) -> str: + return 'http://test' + def config(self): return self._config