mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix: CSRF exempt unit_tests (#27168)
This commit is contained in:
committed by
GitHub
parent
b8fc2e57cc
commit
ceda51617b
@@ -28,4 +28,8 @@ def test_csrf_not_exempt(app_context: None) -> None:
|
||||
"""
|
||||
Test that REST API is not exempt from CSRF.
|
||||
"""
|
||||
assert csrf._exempt_blueprints == {"MenuApi", "SecurityApi", "OpenApi"}
|
||||
assert {blueprint.name for blueprint in csrf._exempt_blueprints} == {
|
||||
"MenuApi",
|
||||
"SecurityApi",
|
||||
"OpenApi",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user