MCPcopy
hub / github.com/tanelpoder/0xtools / get_table_data

Function get_table_data

xtop/tests/test_tui_basic.py:146–156  ·  view source on GitHub ↗

Get current table data

(app)

Source from the content-addressed store, hash-verified

144
145# Helper functions for validation
146def get_table_data(app):
147 """Get current table data"""
148 try:
149 table = app.query_one(DataTable)
150 # Strip whitespace from column labels since numeric columns are right-justified
151 columns = [col.label.plain.strip() for col in table.columns.values()]
152 rows = list(table.rows)
153 return columns, rows
154 except Exception as e:
155 print(f"Warning: Failed to get table data: {e}")
156 return [], []
157
158
159def validate_table_columns(app, expected_columns):

Callers 6

test_cli_mappingFunction · 0.90
validate_table_columnsFunction · 0.70
test_tui_startupFunction · 0.70
test_add_single_columnFunction · 0.70
test_latency_columnsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected