MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / check_table_column

Method check_table_column

test/engine/test_reflection.py:2299–2309  ·  view source on GitHub ↗
(self, table, name, text, persisted)

Source from the content-addressed store, hash-verified

2297
2298class ComputedColumnTest(fixtures.ComputedReflectionFixtureTest):
2299 def check_table_column(self, table, name, text, persisted):
2300 is_true(name in table.columns)
2301 col = table.columns[name]
2302 is_not(col.computed, None)
2303 is_instance_of(col.computed, Computed)
2304
2305 eq_(self.normalize(str(col.computed.sqltext)), text)
2306 if testing.requires.computed_columns_reflect_persisted.enabled:
2307 eq_(col.computed.persisted, persisted)
2308 else:
2309 is_(col.computed.persisted, None)
2310
2311 def test_table_reflection(self):
2312 meta = MetaData()

Callers 1

test_table_reflectionMethod · 0.95

Calls 6

is_trueFunction · 0.90
is_notFunction · 0.90
is_instance_ofFunction · 0.90
eq_Function · 0.90
is_Function · 0.90
normalizeMethod · 0.45

Tested by

no test coverage detected