]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/api/conftest.py
add debug output for unit tests
[nominatim.git] / test / python / api / conftest.py
index 294240163140ec1d1e272b267d37034a28615d9e..0275e275e96e24cda90c6894de7a6ca99fb75af8 100644 (file)
@@ -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()