Run all tests
()
| 190 | |
| 191 | |
| 192 | def main(): |
| 193 | """Run all tests""" |
| 194 | print("=" * 60) |
| 195 | print("Column Selection Tests") |
| 196 | print("=" * 60) |
| 197 | |
| 198 | tests = [ |
| 199 | test_unified_column_list, |
| 200 | test_filter_columns_by_pattern, |
| 201 | test_source_label_mapping, |
| 202 | test_time_columns |
| 203 | ] |
| 204 | |
| 205 | failed = [] |
| 206 | for test in tests: |
| 207 | try: |
| 208 | if not test(): |
| 209 | failed.append(test.__name__) |
| 210 | except Exception as e: |
| 211 | print(f"✗ {test.__name__} failed: {e}") |
| 212 | failed.append(test.__name__) |
| 213 | |
| 214 | print("\n" + "=" * 60) |
| 215 | if not failed: |
| 216 | print("✅ All column selection tests passed!") |
| 217 | return 0 |
| 218 | else: |
| 219 | print(f"❌ {len(failed)} tests failed: {', '.join(failed)}") |
| 220 | return 1 |
| 221 | |
| 222 | |
| 223 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected