From a28c0e70b175c7d6018f45fecbdce4039a8c2a83 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 18 Feb 2019 18:31:19 +0000 Subject: [PATCH] Docs tweak --- docs/database.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/database.md b/docs/database.md index ba3c2dbd..5bab16dc 100644 --- a/docs/database.md +++ b/docs/database.md @@ -276,12 +276,13 @@ We can adjust the `create_test_database` fixture slightly: ```python from alembic import command from alembic.config import Config +import app ... @pytest.fixture(scope="session", autouse=True) def create_test_database(): - url = str(app.database._url) + url = str(app.DATABASE_URL) engine = create_engine(url) assert not database_exists(url), 'Test database already exists. Aborting tests.' create_database(url) # Create the test database.