mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
integration test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user