()
| 1212 | |
| 1213 | |
| 1214 | async def test_move_cursor(): |
| 1215 | app = DataTableApp() |
| 1216 | |
| 1217 | async with app.run_test(): |
| 1218 | table = app.query_one(DataTable) |
| 1219 | table.add_columns(*"These are some columns in your nice table".split()) |
| 1220 | table.add_rows(["These are some columns in your nice table".split()] * 10) |
| 1221 | |
| 1222 | table.move_cursor(row=4, column=6) |
| 1223 | assert table.cursor_coordinate == Coordinate(4, 6) |
| 1224 | table.move_cursor(row=3) |
| 1225 | assert table.cursor_coordinate == Coordinate(3, 6) |
| 1226 | table.move_cursor(column=3) |
| 1227 | assert table.cursor_coordinate == Coordinate(3, 3) |
| 1228 | |
| 1229 | |
| 1230 | async def test_unset_hover_highlight_when_no_table_cell_under_mouse(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…