Home / Function/ test_route_decorator_custom_endpoint_with_dots() — flask Function Reference

test_route_decorator_custom_endpoint_with_dots() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_blueprints.py lines 327–342

def test_route_decorator_custom_endpoint_with_dots(app, client):
    bp = flask.Blueprint("bp", __name__)

    with pytest.raises(ValueError):
        bp.route("/", endpoint="a.b")(lambda: "")

    with pytest.raises(ValueError):
        bp.add_url_rule("/", endpoint="a.b")

    def view():
        return ""

    view.__name__ = "a.b"

    with pytest.raises(ValueError):
        bp.add_url_rule("/", view_func=view)

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free