Get current table data
(app)
| 144 | |
| 145 | # Helper functions for validation |
| 146 | def 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 | |
| 159 | def validate_table_columns(app, expected_columns): |
no outgoing calls
no test coverage detected