MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / test_property_passthrough

Function test_property_passthrough

tests/test_tree.py:17–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def test_property_passthrough():
18 tokens = MarkdownIt().parse(EXAMPLE_MARKDOWN)
19 heading_open = tokens[0]
20 tree = SyntaxTreeNode(tokens)
21 heading_node = tree.children[0]
22 assert heading_open.tag == heading_node.tag
23 assert tuple(heading_open.map or ()) == heading_node.map
24 assert heading_open.level == heading_node.level
25 assert heading_open.content == heading_node.content
26 assert heading_open.markup == heading_node.markup
27 assert heading_open.info == heading_node.info
28 assert heading_open.meta == heading_node.meta
29 assert heading_open.block == heading_node.block
30 assert heading_open.hidden == heading_node.hidden
31
32
33def test_type():

Callers

nothing calls this directly

Calls 3

MarkdownItClass · 0.90
SyntaxTreeNodeClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…