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

Function test_parse_table_horizontal

tests/test_utils.py:4–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_parse_table_horizontal():
5 table = parse_table(
6 """+---------+--------------+
7| Id | Name |
8+---------+--------------+
9| a | b |
10| c | d |
11+---------+--------------+
12"""
13 )
14 assert table.header == ["Id", "Name"]
15 assert table.rows == [
16 ["a", "b"],
17 ["c", "d"],
18 ]
19
20
21def test_parse_table_horizontal_empty():

Callers

nothing calls this directly

Calls 1

parse_tableFunction · 0.85

Tested by

no test coverage detected