X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..59bce26afef3fd65e606e09979c11733dfac6966:/test/python/api/fake_adaptor.py diff --git a/test/python/api/fake_adaptor.py b/test/python/api/fake_adaptor.py index 50fbbbbe..4b64c17d 100644 --- a/test/python/api/fake_adaptor.py +++ b/test/python/api/fake_adaptor.py @@ -10,7 +10,8 @@ Provides dummy implementations of ASGIAdaptor for testing. from collections import namedtuple import nominatim_api.v1.server_glue as glue -from nominatim_core.config import Configuration +from nominatim_api.v1.format import dispatch as formatting +from nominatim_api.config import Configuration class FakeError(BaseException): @@ -47,9 +48,13 @@ class FakeAdaptor(glue.ASGIAdaptor): return FakeResponse(status, output, self.content_type) - def base_uri(self) -> str: + def base_uri(self): return 'http://test' def config(self): return self._config + def formatting(self): + return formatting + +