Test getting a component from the component map. Args: tag: The tag to get. expected: The expected component.
(tag, expected)
| 25 | ], |
| 26 | ) |
| 27 | def 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 | |
| 39 | def test_set_component_map(): |
nothing calls this directly
no test coverage detected