()
| 2 | |
| 3 | |
| 4 | def 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 | |
| 21 | def test_parse_table_horizontal_empty(): |
nothing calls this directly
no test coverage detected