test_context_available() — flask Function Reference
Architecture documentation for the test_context_available() function in test_converters.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 51d615d6_2c57_119f_7a05_c51a96d78749["test_context_available()"] 007e113d_b6a4_380c_c8c6_bfe1084a255a["test_converters.py"] 51d615d6_2c57_119f_7a05_c51a96d78749 -->|defined in| 007e113d_b6a4_380c_c8c6_bfe1084a255a 95581e41_4cf5_47f2_5686_23e5e2200bcd["to_python()"] 51d615d6_2c57_119f_7a05_c51a96d78749 -->|calls| 95581e41_4cf5_47f2_5686_23e5e2200bcd style 51d615d6_2c57_119f_7a05_c51a96d78749 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_converters.py lines 29–42
def test_context_available(app, client):
class ContextConverter(BaseConverter):
def to_python(self, value):
assert request is not None
assert session is not None
return value
app.url_map.converters["ctx"] = ContextConverter
@app.get("/<ctx:name>")
def index(name):
return name
assert client.get("/admin").data == b"admin"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_context_available() do?
test_context_available() is a function in the flask codebase, defined in tests/test_converters.py.
Where is test_context_available() defined?
test_context_available() is defined in tests/test_converters.py at line 29.
What does test_context_available() call?
test_context_available() calls 1 function(s): to_python.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free