MCPcopy
hub / github.com/Textualize/textual / test_add_columns

Function test_add_columns

tests/test_data_table.py:294–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293
294async def test_add_columns():
295 app = DataTableApp()
296 async with app.run_test():
297 table = app.query_one(DataTable)
298 column_keys = table.add_columns("1", "2", "3")
299 assert len(column_keys) == 3
300 assert len(table.columns) == 3
301
302
303async def test_add_columns_with_tuples():

Callers

nothing calls this directly

Calls 4

DataTableAppClass · 0.85
run_testMethod · 0.80
query_oneMethod · 0.80
add_columnsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…