()
| 120 | |
| 121 | |
| 122 | def 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 | ] |
nothing calls this directly
no test coverage detected