MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pk_col_mismatch_three

Method test_pk_col_mismatch_three

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

Source from the content-addressed store, hash-verified

2231
2232 @testing.emits_warning("Table 't'")
2233 def test_pk_col_mismatch_three(self):
2234 m = MetaData()
2235 t = Table(
2236 "t",
2237 m,
2238 Column("x", Integer, primary_key=True),
2239 Column("q", Integer),
2240 PrimaryKeyConstraint("q"),
2241 )
2242 eq_(list(t.primary_key), [t.c.q])
2243
2244 @testing.emits_warning("Table 't'")
2245 def test_pk_col_mismatch_four(self):

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