MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pk_col_mismatch_four

Method test_pk_col_mismatch_four

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

Source from the content-addressed store, hash-verified

2243
2244 @testing.emits_warning("Table 't'")
2245 def test_pk_col_mismatch_four(self):
2246 m = MetaData()
2247 t = Table(
2248 "t",
2249 m,
2250 Column("a", Integer, primary_key=True),
2251 Column("b", Integer, primary_key=True),
2252 Column("c", Integer, primary_key=True),
2253 PrimaryKeyConstraint("b", "c"),
2254 )
2255 eq_(list(t.primary_key), [t.c.b, t.c.c])
2256
2257 def test_pk_always_flips_nullable(self):
2258 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