New app_client_base_url_prefix fixture

This commit is contained in:
Simon Willison 2020-10-24 12:03:24 -07:00
commit 29a977a74e
2 changed files with 36 additions and 31 deletions

View file

@ -159,6 +159,12 @@ def app_client_no_files():
yield TestClient(ds)
@pytest.fixture(scope="session")
def app_client_base_url_prefix():
with make_app_client(config={"base_url": "/prefix/"}) as client:
yield client
@pytest.fixture(scope="session")
def app_client_two_attached_databases():
with make_app_client(