X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1924beeb20db05adbe04f493a3287811ec5b5701..513175ce23674abffdd2ebe59fdb1a600c91cd01:/test/python/api/conftest.py?ds=sidebyside diff --git a/test/python/api/conftest.py b/test/python/api/conftest.py index 29424016..0275e275 100644 --- a/test/python/api/conftest.py +++ b/test/python/api/conftest.py @@ -14,6 +14,7 @@ import datetime as dt import nominatim.api as napi from nominatim.db.sql_preprocessor import SQLPreprocessor +import nominatim.api.logging as loglib class APITester: @@ -138,6 +139,8 @@ def apiobj(temp_db_with_extensions, temp_db_conn, monkeypatch): SQLPreprocessor(temp_db_conn, testapi.api.config)\ .run_sql_file(temp_db_conn, 'functions/address_lookup.sql') + loglib.set_log_output('text') yield testapi + print(loglib.get_and_disable()) testapi.api.close()