test_url_for_with_alternating_schemes() — flask Function Reference
Architecture documentation for the test_url_for_with_alternating_schemes() function in test_helpers.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 02107695_44aa_1f59_7825_8058247fc59d["test_url_for_with_alternating_schemes()"] 1e08bdec_29d2_c29b_db96_904133a45034["TestUrlFor"] 02107695_44aa_1f59_7825_8058247fc59d -->|defined in| 1e08bdec_29d2_c29b_db96_904133a45034 style 02107695_44aa_1f59_7825_8058247fc59d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_helpers.py lines 131–141
def test_url_for_with_alternating_schemes(self, app, req_ctx):
@app.route("/")
def index():
return "42"
assert flask.url_for("index", _external=True) == "http://localhost/"
assert (
flask.url_for("index", _external=True, _scheme="https")
== "https://localhost/"
)
assert flask.url_for("index", _external=True) == "http://localhost/"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_url_for_with_alternating_schemes() do?
test_url_for_with_alternating_schemes() is a function in the flask codebase, defined in tests/test_helpers.py.
Where is test_url_for_with_alternating_schemes() defined?
test_url_for_with_alternating_schemes() is defined in tests/test_helpers.py at line 131.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free