aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-06-29 20:38:30 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-06-29 20:38:30 +0200
commit2efc642f029fee9a5cf0640a766acd3cdf633eba (patch)
tree65c95684c3c35f0b889fe30ee8a4988ba3f79986 /tests/conftest.py
parente6d18b9205e1baf86df1e0cb3c5bf54c9489976f (diff)
downloadfietsboek-2efc642f029fee9a5cf0640a766acd3cdf633eba.tar.gz
fietsboek-2efc642f029fee9a5cf0640a766acd3cdf633eba.tar.bz2
fietsboek-2efc642f029fee9a5cf0640a766acd3cdf633eba.zip
tileproxy: use caplog in the test
See if it works, it might be handy for other tests in the future as well.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index d4394cd..a4366ab 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+import logging
import os
import shutil
from pathlib import Path
@@ -75,6 +76,7 @@ def _cleanup_data(app_settings):
@pytest.fixture(scope='session')
def app(app_settings, dbengine, tmp_path_factory):
app_settings["fietsboek.data_dir"] = str(tmp_path_factory.mktemp("data"))
+ logging.getLogger().setLevel(logging.DEBUG)
return main({}, dbengine=dbengine, **app_settings)
@pytest.fixture