Home / Function/ test_tag_order() — flask Function Reference

test_tag_order() — flask Function Reference

Architecture documentation for the test_tag_order() function in test_json_tag.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  e363d7fe_cfdb_13a4_a37c_bdef31dba835["test_tag_order()"]
  9ee4537d_ef85_ee15_7a39_4a9f1c7ee7e2["test_json_tag.py"]
  e363d7fe_cfdb_13a4_a37c_bdef31dba835 -->|defined in| 9ee4537d_ef85_ee15_7a39_4a9f1c7ee7e2
  style e363d7fe_cfdb_13a4_a37c_bdef31dba835 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_json_tag.py lines 73–86

def test_tag_order():
    class Tag1(JSONTag):
        key = " 1"

    class Tag2(JSONTag):
        key = " 2"

    s = TaggedJSONSerializer()

    s.register(Tag1, index=-1)
    assert isinstance(s.order[-2], Tag1)

    s.register(Tag2, index=None)
    assert isinstance(s.order[-1], Tag2)

Subdomains

Frequently Asked Questions

What does test_tag_order() do?
test_tag_order() is a function in the flask codebase, defined in tests/test_json_tag.py.
Where is test_tag_order() defined?
test_tag_order() is defined in tests/test_json_tag.py at line 73.

Analyze Your Own Codebase

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

Try Supermodel Free