Home / Function/ test_nesting_url_prefixes() — flask Function Reference

test_nesting_url_prefixes() — flask Function Reference

Architecture documentation for the test_nesting_url_prefixes() function in test_blueprints.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  e3b528af_e28a_2114_beff_00a623d66148["test_nesting_url_prefixes()"]
  4366a441_d387_52f9_ec8d_1c41c71c00a8["test_blueprints.py"]
  e3b528af_e28a_2114_beff_00a623d66148 -->|defined in| 4366a441_d387_52f9_ec8d_1c41c71c00a8
  style e3b528af_e28a_2114_beff_00a623d66148 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_blueprints.py lines 1012–1031

def test_nesting_url_prefixes(
    parent_init,
    child_init,
    parent_registration,
    child_registration,
    app,
    client,
) -> None:
    parent = flask.Blueprint("parent", __name__, url_prefix=parent_init)
    child = flask.Blueprint("child", __name__, url_prefix=child_init)

    @child.route("/")
    def index():
        return "index"

    parent.register_blueprint(child, url_prefix=child_registration)
    app.register_blueprint(parent, url_prefix=parent_registration)

    response = client.get("/parent/child/")
    assert response.status_code == 200

Subdomains

Frequently Asked Questions

What does test_nesting_url_prefixes() do?
test_nesting_url_prefixes() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_nesting_url_prefixes() defined?
test_nesting_url_prefixes() is defined in tests/test_blueprints.py at line 1012.

Analyze Your Own Codebase

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

Try Supermodel Free