X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7219ee653276359d4485ff8b89e1841e42af71c5..dfcb24061eb6d3d415cd86d2f4edd95c4debaf36:/test/bdd/steps/nominatim_environment.py diff --git a/test/bdd/steps/nominatim_environment.py b/test/bdd/steps/nominatim_environment.py index 158b7974..e156c60c 100644 --- a/test/bdd/steps/nominatim_environment.py +++ b/test/bdd/steps/nominatim_environment.py @@ -9,9 +9,6 @@ import importlib import sys import tempfile -from asgi_lifespan import LifespanManager -import httpx - import psycopg2 import psycopg2.extras @@ -337,6 +334,8 @@ class NominatimEnvironment: def create_api_request_func_starlette(self): import nominatim.server.starlette.server + from asgi_lifespan import LifespanManager + import httpx async def _request(endpoint, params, project_dir, environ): app = nominatim.server.starlette.server.get_application(project_dir, environ)