fix: CSRF exempt unit_tests (#27168)

This commit is contained in:
Daniel Vaz Gaspar
2024-02-20 16:18:30 +00:00
committed by GitHub
parent b8fc2e57cc
commit ceda51617b
2 changed files with 9 additions and 1 deletions

View File

@@ -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",
}