()
| 91 | |
| 92 | |
| 93 | def test_parse_tables_horizontal(): |
| 94 | tables = parse_tables( |
| 95 | """+---------+--------------+ |
| 96 | | Id | Name | |
| 97 | +---------+--------------+ |
| 98 | | a | b | |
| 99 | | c | d | |
| 100 | +---------+--------------+ |
| 101 | +---------+--------------+ |
| 102 | | Id | Name | |
| 103 | +---------+--------------+ |
| 104 | | e | f | |
| 105 | | g | h | |
| 106 | +---------+--------------+ |
| 107 | """ |
| 108 | ) |
| 109 | print("Found tables:", len(tables)) |
| 110 | assert tables[0].header == ["Id", "Name"] |
| 111 | assert tables[0].rows == [ |
| 112 | ["a", "b"], |
| 113 | ["c", "d"], |
| 114 | ] |
| 115 | assert tables[1].header == ["Id", "Name"] |
| 116 | assert tables[1].rows == [ |
| 117 | ["e", "f"], |
| 118 | ["g", "h"], |
| 119 | ] |
| 120 | |
| 121 | |
| 122 | def test_parse_tables_vertical(): |
nothing calls this directly
no test coverage detected