Home / Function/ test_duplicate_tag() — flask Function Reference

test_duplicate_tag() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_json_tag.py lines 32–40

def test_duplicate_tag():
    class TagDict(JSONTag):
        key = " d"

    s = TaggedJSONSerializer()
    pytest.raises(KeyError, s.register, TagDict)
    s.register(TagDict, force=True, index=0)
    assert isinstance(s.tags[" d"], TagDict)
    assert isinstance(s.order[0], TagDict)

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free