aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-08-02 20:58:32 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-08-02 20:58:32 +0200
commit2b89bec8ab0b6fecd9484713f565a7557c50842e (patch)
treee2294f2c8a872c173b7d9c91087e5cb2aea58b44 /tests
parentdb22180e1392758140a9fa5d046f09f22d6588f7 (diff)
parent971fd5dd89e1cd26cfffdd5fdd68873dac90bc94 (diff)
downloadfietsboek-2b89bec8ab0b6fecd9484713f565a7557c50842e.tar.gz
fietsboek-2b89bec8ab0b6fecd9484713f565a7557c50842e.tar.bz2
fietsboek-2b89bec8ab0b6fecd9484713f565a7557c50842e.zip
Merge branch 'tileproxy-test'
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
-rw-r--r--tests/playwright/test_tileproxy.py4
2 files changed, 5 insertions, 1 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
diff --git a/tests/playwright/test_tileproxy.py b/tests/playwright/test_tileproxy.py
index b948bab..bf1146b 100644
--- a/tests/playwright/test_tileproxy.py
+++ b/tests/playwright/test_tileproxy.py
@@ -1,7 +1,7 @@
from playwright.sync_api import Page
-def test_tileproxy(page: Page, playwright_helper):
+def test_tileproxy(page: Page, playwright_helper, caplog):
playwright_helper.login()
track_id = playwright_helper.add_track().id
@@ -9,3 +9,5 @@ def test_tileproxy(page: Page, playwright_helper):
with page.expect_request("/tile/test/**"):
pass
+
+ assert "Skipping tile proxy request for testing URL" in caplog.messages