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

Function test_csrf_config_defaults

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

Source from the content-addressed store, hash-verified

483
484
485def test_csrf_config_defaults():
486 app = Dash()
487 assert app.config.csrf_token_name == "_csrf_token"
488 assert app.config.csrf_header_name == "X-CSRFToken"
489
490 config = app._config()
491 assert config["csrf_token_name"] == "_csrf_token"
492 assert config["csrf_header_name"] == "X-CSRFToken"
493
494
495def test_csrf_config_custom():

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…