mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix: REST API CSRF exempt list (#25590)
This commit is contained in:
committed by
GitHub
parent
512fb9a0bd
commit
549abb542b
@@ -89,6 +89,15 @@ def app(request: SubRequest) -> Iterator[SupersetApp]:
|
||||
app.config["TESTING"] = True
|
||||
|
||||
# loop over extra configs passed in by tests
|
||||
# and update the app config
|
||||
# to override the default configs use:
|
||||
#
|
||||
# @pytest.mark.parametrize(
|
||||
# "app",
|
||||
# [{"SOME_CONFIG": "SOME_VALUE"}],
|
||||
# indirect=True,
|
||||
# )
|
||||
# def test_some_test(app_context: None) -> None:
|
||||
if request and hasattr(request, "param"):
|
||||
for key, val in request.param.items():
|
||||
app.config[key] = val
|
||||
|
||||
Reference in New Issue
Block a user