test_session_using_application_root() — flask Function Reference
Architecture documentation for the test_session_using_application_root() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 889478de_bed1_3b91_21fc_1c9fbab95d45["test_session_using_application_root()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 889478de_bed1_3b91_21fc_1c9fbab95d45 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 889478de_bed1_3b91_21fc_1c9fbab95d45 -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 889478de_bed1_3b91_21fc_1c9fbab95d45 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 269–288
def test_session_using_application_root(app, client):
class PrefixPathMiddleware:
def __init__(self, app, prefix):
self.app = app
self.prefix = prefix
def __call__(self, environ, start_response):
environ["SCRIPT_NAME"] = self.prefix
return self.app(environ, start_response)
app.wsgi_app = PrefixPathMiddleware(app.wsgi_app, "/bar")
app.config.update(APPLICATION_ROOT="/bar")
@app.route("/")
def index():
flask.session["testing"] = 42
return "Hello World"
rv = client.get("/", "http://example.com:8080/")
assert "path=/bar" in rv.headers["set-cookie"].lower()
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_session_using_application_root() do?
test_session_using_application_root() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_session_using_application_root() defined?
test_session_using_application_root() is defined in tests/test_basic.py at line 269.
What does test_session_using_application_root() call?
test_session_using_application_root() calls 1 function(s): index.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free