MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_get_component

Function test_get_component

tests/components/typography/test_markdown.py:27–36  ·  view source on GitHub ↗

Test getting a component from the component map. Args: tag: The tag to get. expected: The expected component.

(tag, expected)

Source from the content-addressed store, hash-verified

25 ],
26)
27def test_get_component(tag, expected):
28 """Test getting a component from the component map.
29
30 Args:
31 tag: The tag to get.
32 expected: The expected component.
33 """
34 md = Markdown.create("# Hello")
35 assert tag in md.component_map # type: ignore
36 assert md.get_component(tag).tag == expected # type: ignore
37
38
39def test_set_component_map():

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
get_componentMethod · 0.45

Tested by

no test coverage detected