MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_system_flag

Method test_system_flag

test/sql/test_compiler.py:6580–6596  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6578 )
6579
6580 def test_system_flag(self):
6581 m = MetaData()
6582 t = Table(
6583 "t",
6584 m,
6585 Column("x", Integer),
6586 Column("y", Integer, system=True),
6587 Column("z", Integer),
6588 )
6589 self.assert_compile(
6590 schema.CreateTable(t), "CREATE TABLE t (x INTEGER, z INTEGER)"
6591 )
6592 m2 = MetaData()
6593 t2 = t.to_metadata(m2)
6594 self.assert_compile(
6595 schema.CreateTable(t2), "CREATE TABLE t (x INTEGER, z INTEGER)"
6596 )
6597
6598 def test_composite_pk_constraint_autoinc_first_implicit(self):
6599 m = MetaData()

Callers

nothing calls this directly

Calls 5

to_metadataMethod · 0.95
MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected