Home / Function/ test_basic_url_generation() — flask Function Reference

test_basic_url_generation() — flask Function Reference

Architecture documentation for the test_basic_url_generation() function in test_appctx.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  9db997d1_2ec6_b956_8338_a4309fd0fe23["test_basic_url_generation()"]
  64d09782_9311_5dea_7886_5faca96ebc84["test_appctx.py"]
  9db997d1_2ec6_b956_8338_a4309fd0fe23 -->|defined in| 64d09782_9311_5dea_7886_5faca96ebc84
  style 9db997d1_2ec6_b956_8338_a4309fd0fe23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_appctx.py lines 7–17

def test_basic_url_generation(app):
    app.config["SERVER_NAME"] = "localhost"
    app.config["PREFERRED_URL_SCHEME"] = "https"

    @app.route("/")
    def index():
        pass

    with app.app_context():
        rv = flask.url_for("index")
        assert rv == "https://localhost/"

Subdomains

Frequently Asked Questions

What does test_basic_url_generation() do?
test_basic_url_generation() is a function in the flask codebase, defined in tests/test_appctx.py.
Where is test_basic_url_generation() defined?
test_basic_url_generation() is defined in tests/test_appctx.py at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free