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

Function test_parse_tables_vertical

tests/test_utils.py:122–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122def test_parse_tables_vertical():
123 tables = parse_tables(
124 """+---------+--------------+
125| Id | 1 |
126| Name | 2 |
127| Value | a |
128+---------+--------------+
129+---------+--------------+
130| Id | 3 |
131| Name | 4 |
132| Value | b |
133+---------+--------------+
134"""
135 )
136 assert tables[0].header is None
137 assert tables[0].rows == [
138 ["Id", "1"],
139 ["Name", "2"],
140 ["Value", "a"],
141 ]
142 assert tables[1].header is None
143 assert tables[1].rows == [
144 ["Id", "3"],
145 ["Name", "4"],
146 ["Value", "b"],
147 ]

Callers

nothing calls this directly

Calls 1

parse_tablesFunction · 0.85

Tested by

no test coverage detected