|
31 | 31 |
|
32 | 32 | from . import model |
33 | 33 |
|
34 | | -LABEL_SUPPORTED = '<span title="Supported">✅</span>' |
35 | | -LABEL_PARTIALLY_SUPPORTED = '<span title="Partially Supported">⚠️</span>' |
36 | | -LABEL_UNSUSPPORTED = '<span title="Unsupported">❌</span>' |
37 | | - |
38 | 34 |
|
39 | 35 | @dataclasses.dataclass |
40 | 36 | class CustomFeature: |
@@ -89,31 +85,31 @@ def pprint(self) -> str: |
89 | 85 |
|
90 | 86 | value = getattr(self.features, field.name) |
91 | 87 | if isinstance(value, bool): |
92 | | - value = LABEL_SUPPORTED if value else LABEL_UNSUSPPORTED |
| 88 | + value = "✅" if value else "❌" |
93 | 89 | lines.append(f"- {field.name}: {value}") |
94 | 90 |
|
95 | 91 | for group, features in self.custom_features.groups.items(): |
96 | 92 | lines.append(f"- {group}:") |
97 | 93 | for feature in features: |
98 | | - status = LABEL_SUPPORTED if feature.supported else LABEL_UNSUSPPORTED |
| 94 | + status = "✅" if feature.supported else "❌" |
99 | 95 | lines.append(f" - {feature.name}: {status} {feature.description}") |
100 | 96 |
|
101 | 97 | lines.append("") |
102 | 98 | lines.append("GetObjects") |
103 | 99 | lines.append("~~~~~~~~~~") |
104 | 100 | for name, supported in self.get_objects.items(): |
105 | | - status = LABEL_SUPPORTED if supported else LABEL_UNSUSPPORTED |
| 101 | + status = "✅" if supported else "❌" |
106 | 102 | lines.append(f"- {name}: {status}") |
107 | 103 |
|
108 | | - status = LABEL_SUPPORTED if self.get_table_schema else LABEL_UNSUSPPORTED |
| 104 | + status = "✅" if self.get_table_schema else "❌" |
109 | 105 | lines.append("") |
110 | 106 | lines.append(f"GetTableSchema: {status}") |
111 | 107 |
|
112 | 108 | lines.append("") |
113 | 109 | lines.append("Ingest Modes") |
114 | 110 | lines.append("~~~~~~~~~~~~") |
115 | 111 | for name, supported in self.ingest.items(): |
116 | | - status = LABEL_SUPPORTED if supported else LABEL_UNSUSPPORTED |
| 112 | + status = "✅" if supported else "❌" |
117 | 113 | lines.append(f"- {name}: {status}") |
118 | 114 |
|
119 | 115 | def render_type_table(category: str, entries: list[tuple[str, str]]) -> None: |
@@ -201,11 +197,11 @@ def add_table_entry( |
201 | 197 | caveats.append(caveat) |
202 | 198 |
|
203 | 199 | if passed == 0: |
204 | | - table_entry = LABEL_UNSUSPPORTED |
| 200 | + table_entry = "❌" |
205 | 201 | elif ( |
206 | 202 | partial_support or passed < len(test_case["test_results"]) or extra_caveats |
207 | 203 | ): |
208 | | - table_entry += f" {LABEL_PARTIALLY_SUPPORTED}" |
| 204 | + table_entry += " ⚠️" |
209 | 205 | for query_name, result in zip( |
210 | 206 | test_case["query_names"], test_case["test_results"] |
211 | 207 | ): |
|
0 commit comments