()
| 278 | |
| 279 | |
| 280 | async def test_add_column_with_width(): |
| 281 | app = DataTableApp() |
| 282 | async with app.run_test(): |
| 283 | table = app.query_one(DataTable) |
| 284 | column = table.add_column("ABC", width=10, key="ABC") |
| 285 | row = table.add_row("123") |
| 286 | assert table.get_cell(row, column) == "123" |
| 287 | assert table.columns[column].width == 10 |
| 288 | assert ( |
| 289 | table.columns[column].get_render_width(table) |
| 290 | == 10 + 2 * _DEFAULT_CELL_X_PADDING |
| 291 | ) |
| 292 | |
| 293 | |
| 294 | async def test_add_columns(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…