Home / Function/ test_url_for_with_scheme_not_external() — flask Function Reference

test_url_for_with_scheme_not_external() — flask Function Reference

Architecture documentation for the test_url_for_with_scheme_not_external() function in test_helpers.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  f1309072_8970_db5c_cd41_5ab7d60d5768["test_url_for_with_scheme_not_external()"]
  1e08bdec_29d2_c29b_db96_904133a45034["TestUrlFor"]
  f1309072_8970_db5c_cd41_5ab7d60d5768 -->|defined in| 1e08bdec_29d2_c29b_db96_904133a45034
  style f1309072_8970_db5c_cd41_5ab7d60d5768 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_helpers.py lines 120–129

    def test_url_for_with_scheme_not_external(self, app, req_ctx):
        app.add_url_rule("/", endpoint="index")

        # Implicit external with scheme.
        url = flask.url_for("index", _scheme="https")
        assert url == "https://localhost/"

        # Error when external=False with scheme
        with pytest.raises(ValueError):
            flask.url_for("index", _scheme="https", _external=False)

Subdomains

Frequently Asked Questions

What does test_url_for_with_scheme_not_external() do?
test_url_for_with_scheme_not_external() is a function in the flask codebase, defined in tests/test_helpers.py.
Where is test_url_for_with_scheme_not_external() defined?
test_url_for_with_scheme_not_external() is defined in tests/test_helpers.py at line 120.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free