aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-11 16:15:37 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-11 16:15:37 +0200
commit68313fb431a2174dadbdb0a74c56a0a65d9d8594 (patch)
treecdf16abbdafee9e752eb85aee67af8d5a34c1c1c /tests/conftest.py
parentd27174acf4b2e7a932cdbc2d33559b6ce6bf810e (diff)
downloadfietsboek-68313fb431a2174dadbdb0a74c56a0a65d9d8594.tar.gz
fietsboek-68313fb431a2174dadbdb0a74c56a0a65d9d8594.tar.bz2
fietsboek-68313fb431a2174dadbdb0a74c56a0a65d9d8594.zip
add integration tests for uploading
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 5251b35..b8e3090 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -130,3 +130,14 @@ def dummy_config(dummy_request):
"""
with testConfig(request=dummy_request) as config:
yield config
+
+@pytest.fixture
+def route_path(app_request):
+ """
+ A fixture that yields a function to generate route paths.
+
+ This is equivalent to calling request.route_path on a request.
+ """
+ def get_route_path(*args, **kwargs):
+ return app_request.route_path(*args, **kwargs)
+ return get_route_path