integration test

This commit is contained in:
AAfghahi
2022-11-15 17:42:30 -05:00
parent 80a306eaad
commit e682bae27f
4 changed files with 42 additions and 2 deletions

View File

@@ -70,6 +70,7 @@ def app() -> Iterator[SupersetApp]:
app.config.from_object("superset.config")
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://"
app.config["WTF_CSRF_ENABLED"] = False
app.config["TESTING"] = True
# ``superset.extensions.appbuilder`` is a singleton, and won't rebuild the

View File

@@ -53,7 +53,7 @@ def test_convert_dashboard_link() -> None:
("xpto://localhost:[3/1/", False),
],
)
def test_is_safe_url(url: str, is_safe: bool) -> None:
def test_is_safe_url(app_context: None, url: str, is_safe: bool) -> None:
from superset import app
from superset.utils.urls import is_safe_url