test_custom_app_ctx_globals_class() — flask Function Reference
Architecture documentation for the test_custom_app_ctx_globals_class() function in test_appctx.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD ccb09eee_ccb2_e805_698a_215ce8833f66["test_custom_app_ctx_globals_class()"] 64d09782_9311_5dea_7886_5faca96ebc84["test_appctx.py"] ccb09eee_ccb2_e805_698a_215ce8833f66 -->|defined in| 64d09782_9311_5dea_7886_5faca96ebc84 style ccb09eee_ccb2_e805_698a_215ce8833f66 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_appctx.py lines 159–166
def test_custom_app_ctx_globals_class(app):
class CustomRequestGlobals:
def __init__(self):
self.spam = "eggs"
app.app_ctx_globals_class = CustomRequestGlobals
with app.app_context():
assert flask.render_template_string("{{ g.spam }}") == "eggs"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_custom_app_ctx_globals_class() do?
test_custom_app_ctx_globals_class() is a function in the flask codebase, defined in tests/test_appctx.py.
Where is test_custom_app_ctx_globals_class() defined?
test_custom_app_ctx_globals_class() is defined in tests/test_appctx.py at line 159.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free