fix: REST API CSRF exempt list (#25590)

This commit is contained in:
Daniel Vaz Gaspar
2023-10-10 12:53:37 +01:00
committed by GitHub
parent 512fb9a0bd
commit 549abb542b
3 changed files with 41 additions and 1 deletions

View File

@@ -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