MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / phase2

Method phase2

test/sql-feature-flags/mzcompose.py:145–160  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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:

Callers 1

run_testFunction · 0.80

Calls 10

query_okFunction · 0.85
statement_okFunction · 0.85
statement_errorFunction · 0.85
query_itemMethod · 0.80
feature_errorMethod · 0.80
headerFunction · 0.70
joinMethod · 0.45
initializeMethod · 0.45
drop_itemMethod · 0.45
create_itemMethod · 0.45

Tested by

no test coverage detected