From dff5be1a584324ed64e11e352c46bcd8fbcb7f69 Mon Sep 17 00:00:00 2001 From: AAfghahi Date: Tue, 8 Nov 2022 17:41:43 -0500 Subject: [PATCH] added test fix --- tests/integration_tests/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py index fee13c8950a..67d73ff147b 100644 --- a/tests/integration_tests/conftest.py +++ b/tests/integration_tests/conftest.py @@ -75,6 +75,11 @@ def setup_sample_data() -> Any: db.session.commit() +@pytest.fixture +def login_as_admin(login_as: Callable[..., None]): + yield login_as("admin") + + def drop_from_schema(engine: Engine, schema_name: str): schemas = engine.execute(f"SHOW SCHEMAS").fetchall() if schema_name not in [s[0] for s in schemas]: