diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 11 |
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 |