MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pk_args_standalone

Method test_pk_args_standalone

test/sql/test_metadata.py:2176–2185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2174 is_(t._autoincrement_column, t.c.id)
2175
2176 def test_pk_args_standalone(self):
2177 m = MetaData()
2178 t = Table(
2179 "t",
2180 m,
2181 Column("x", Integer, primary_key=True),
2182 PrimaryKeyConstraint(mssql_clustered=True),
2183 )
2184 eq_(list(t.primary_key), [t.c.x])
2185 eq_(t.primary_key.dialect_kwargs, {"mssql_clustered": True})
2186
2187 def test_pk_cols_sets_flags(self):
2188 m = MetaData()

Callers

nothing calls this directly

Calls 5

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
eq_Function · 0.90

Tested by

no test coverage detected