feat: TreeMap migration (#20346)

This commit is contained in:
Yongjie Zhao
2022-07-07 19:37:18 +08:00
committed by GitHub
parent de4f7db57e
commit 7626c31372
5 changed files with 324 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
# pylint: disable=redefined-outer-name, import-outside-toplevel
import importlib
import os
from typing import Any, Callable, Iterator
import pytest
@@ -69,7 +70,9 @@ def app() -> Iterator[SupersetApp]:
app = SupersetApp(__name__)
app.config.from_object("superset.config")
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://"
app.config["SQLALCHEMY_DATABASE_URI"] = (
os.environ.get("SUPERSET__SQLALCHEMY_DATABASE_URI") or "sqlite://"
)
app.config["WTF_CSRF_ENABLED"] = False
app.config["PREVENT_UNSAFE_DB_CONNECTIONS"] = False
app.config["TESTING"] = True