MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / test_parse_table_multiline_value

Function test_parse_table_multiline_value

tests/test_utils.py:49–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def test_parse_table_multiline_value():
50 table = parse_table(
51 """+---------+--------------+
52| Id | 1 |
53| Name | line1 |
54| | line2 |
55| | line3 |
56| Value | c |
57+---------+--------------+
58"""
59 )
60 assert table.header is None
61 assert table.rows == [
62 ["Id", "1"],
63 ["Name", "line1\nline2\nline3"],
64 ["Value", "c"],
65 ]
66
67
68def test_parse_table_empty():

Callers

nothing calls this directly

Calls 1

parse_tableFunction · 0.85

Tested by

no test coverage detected