test_app_context_provides_current_app() — flask Function Reference
Architecture documentation for the test_app_context_provides_current_app() function in test_appctx.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 3bb49e4a_8846_030b_f80b_3c51bfbd84fc["test_app_context_provides_current_app()"] 64d09782_9311_5dea_7886_5faca96ebc84["test_appctx.py"] 3bb49e4a_8846_030b_f80b_3c51bfbd84fc -->|defined in| 64d09782_9311_5dea_7886_5faca96ebc84 style 3bb49e4a_8846_030b_f80b_3c51bfbd84fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_appctx.py lines 37–40
def test_app_context_provides_current_app(app):
with app.app_context():
assert flask.current_app._get_current_object() is app
assert not flask.current_app
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_app_context_provides_current_app() do?
test_app_context_provides_current_app() is a function in the flask codebase, defined in tests/test_appctx.py.
Where is test_app_context_provides_current_app() defined?
test_app_context_provides_current_app() is defined in tests/test_appctx.py at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free