MCPcopy
hub / github.com/plotly/dash / test_csrf_config_custom

Function test_csrf_config_custom

tests/unit/test_configs.py:495–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493
494
495def test_csrf_config_custom():
496 app = Dash(csrf_token_name="csrftoken", csrf_header_name="X-CSRF-Token")
497 assert app.config.csrf_token_name == "csrftoken"
498 assert app.config.csrf_header_name == "X-CSRF-Token"
499
500 config = app._config()
501 assert config["csrf_token_name"] == "csrftoken"
502 assert config["csrf_header_name"] == "X-CSRF-Token"
503
504
505def test_csrf_config_in_index():

Callers

nothing calls this directly

Calls 2

_configMethod · 0.95
DashClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…