X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/086116b3a14f84a5d23b33acd5390245aea88d71..e92e03e2e6b892e6dc7a931fe0e70de9315bd302:/test/python/api/search/test_legacy_query_analyzer.py?ds=sidebyside diff --git a/test/python/api/search/test_legacy_query_analyzer.py b/test/python/api/search/test_legacy_query_analyzer.py index a99485ea..7a4d41d3 100644 --- a/test/python/api/search/test_legacy_query_analyzer.py +++ b/test/python/api/search/test_legacy_query_analyzer.py @@ -72,7 +72,7 @@ async def conn(table_factory, temp_db_cursor): temp_db_cursor.execute("""CREATE OR REPLACE FUNCTION make_standard_name(name TEXT) RETURNS TEXT AS $$ SELECT lower(name); $$ LANGUAGE SQL;""") - async with NominatimAPIAsync(environ={}) as api: + async with NominatimAPIAsync() as api: async with api.begin() as conn: yield conn