test_sort() — flask Function Reference
Architecture documentation for the test_sort() function in test_cli.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 02d6c36b_d894_2580_16f5_743c55150675["test_sort()"] 87d8059b_b546_2f64_06d3_da6459a325ff["TestRoutes"] 02d6c36b_d894_2580_16f5_743c55150675 -->|defined in| 87d8059b_b546_2f64_06d3_da6459a325ff ff594b6c_d119_915e_507d_d4a50cb7e11e["expect_order()"] 02d6c36b_d894_2580_16f5_743c55150675 -->|calls| ff594b6c_d119_915e_507d_d4a50cb7e11e cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac["invoke()"] 02d6c36b_d894_2580_16f5_743c55150675 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac style 02d6c36b_d894_2580_16f5_743c55150675 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_cli.py lines 474–487
def test_sort(self, app, invoke):
default_output = invoke(["routes"]).output
endpoint_output = invoke(["routes", "-s", "endpoint"]).output
assert default_output == endpoint_output
self.expect_order(
["static", "yyy_get_post", "aaa_post"],
invoke(["routes", "-s", "methods"]).output,
)
self.expect_order(
["yyy_get_post", "static", "aaa_post"],
invoke(["routes", "-s", "rule"]).output,
)
match_order = [r.endpoint for r in app.url_map.iter_rules()]
self.expect_order(match_order, invoke(["routes", "-s", "match"]).output)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_sort() do?
test_sort() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_sort() defined?
test_sort() is defined in tests/test_cli.py at line 474.
What does test_sort() call?
test_sort() calls 2 function(s): expect_order, invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free