test_open_session_with_endpoint() — flask Function Reference
Architecture documentation for the test_open_session_with_endpoint() function in test_session_interface.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 3dbd88ed_603c_e2d6_ca84_74fd193a8f90["test_open_session_with_endpoint()"] ddf20531_87e2_6e31_f458_6d380fe08765["test_session_interface.py"] 3dbd88ed_603c_e2d6_ca84_74fd193a8f90 -->|defined in| ddf20531_87e2_6e31_f458_6d380fe08765 eb8cfa51_9ec9_73c9_1b2a_10e456911729["save_session()"] 3dbd88ed_603c_e2d6_ca84_74fd193a8f90 -->|calls| eb8cfa51_9ec9_73c9_1b2a_10e456911729 753c8ad2_14ce_51b0_d481_c2d5dbd68913["open_session()"] 3dbd88ed_603c_e2d6_ca84_74fd193a8f90 -->|calls| 753c8ad2_14ce_51b0_d481_c2d5dbd68913 style 3dbd88ed_603c_e2d6_ca84_74fd193a8f90 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_session_interface.py lines 6–28
def test_open_session_with_endpoint():
"""If request.endpoint (or other URL matching behavior) is needed
while loading the session, RequestContext.match_request() can be
called manually.
"""
class MySessionInterface(SessionInterface):
def save_session(self, app, session, response):
pass
def open_session(self, app, request):
app_ctx.match_request()
assert request.endpoint is not None
app = flask.Flask(__name__)
app.session_interface = MySessionInterface()
@app.get("/")
def index():
return "Hello, World!"
response = app.test_client().get("/")
assert response.status_code == 200
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_open_session_with_endpoint() do?
test_open_session_with_endpoint() is a function in the flask codebase, defined in tests/test_session_interface.py.
Where is test_open_session_with_endpoint() defined?
test_open_session_with_endpoint() is defined in tests/test_session_interface.py at line 6.
What does test_open_session_with_endpoint() call?
test_open_session_with_endpoint() calls 2 function(s): open_session, save_session.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free