Home / Function/ expect_order() — flask Function Reference

expect_order() — flask Function Reference

Architecture documentation for the expect_order() function in test_cli.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  ff594b6c_d119_915e_507d_d4a50cb7e11e["expect_order()"]
  87d8059b_b546_2f64_06d3_da6459a325ff["TestRoutes"]
  ff594b6c_d119_915e_507d_d4a50cb7e11e -->|defined in| 87d8059b_b546_2f64_06d3_da6459a325ff
  1c2463dc_53b4_7b60_5549_5a16cce48390["test_simple()"]
  1c2463dc_53b4_7b60_5549_5a16cce48390 -->|calls| ff594b6c_d119_915e_507d_d4a50cb7e11e
  02d6c36b_d894_2580_16f5_743c55150675["test_sort()"]
  02d6c36b_d894_2580_16f5_743c55150675 -->|calls| ff594b6c_d119_915e_507d_d4a50cb7e11e
  style ff594b6c_d119_915e_507d_d4a50cb7e11e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_cli.py lines 463–467

    def expect_order(self, order, output):
        # skip the header and match the start of each row
        for expect, line in zip(order, output.splitlines()[2:], strict=False):
            # do this instead of startswith for nicer pytest output
            assert line[: len(expect)] == expect

Subdomains

Defined In

Frequently Asked Questions

What does expect_order() do?
expect_order() is a function in the flask codebase, defined in tests/test_cli.py.
Where is expect_order() defined?
expect_order() is defined in tests/test_cli.py at line 463.
What calls expect_order()?
expect_order() is called by 2 function(s): test_simple, test_sort.

Analyze Your Own Codebase

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

Try Supermodel Free