(cls)
| 143 | |
| 144 | @classmethod |
| 145 | def phase2(cls) -> str: |
| 146 | return "\n\n".join( |
| 147 | [ |
| 148 | # Include the header. |
| 149 | header(f"{cls.__name__} (phase 2)", drop_schema=False), |
| 150 | cls.initialize(), |
| 151 | # We can query item #1 when the feature is turned on. Ensures |
| 152 | # that catalog rehydration ignores SQL-level feature flags. |
| 153 | query_ok(cls.query_item(ordinal=1)), |
| 154 | # We can drop item #1. |
| 155 | statement_ok(cls.drop_item(ordinal=1)), |
| 156 | # We cannot create item #2 when the feature is turned off. |
| 157 | # Ensures that the feature flag is respected for new items. |
| 158 | statement_error(cls.create_item(ordinal=2), cls.feature_error()), |
| 159 | ] |
| 160 | ) |
| 161 | |
| 162 | @classmethod |
| 163 | def phase3(cls) -> str: |
no test coverage detected