mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
added test fix
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user