(self)
| 2199 | eq_(t.c.z.primary_key, False) |
| 2200 | |
| 2201 | def test_pk_col_mismatch_one(self): |
| 2202 | m = MetaData() |
| 2203 | |
| 2204 | with expect_warnings( |
| 2205 | "Table 't' specifies columns 'x' as primary_key=True, " |
| 2206 | "not matching locally specified columns 'q'" |
| 2207 | ): |
| 2208 | Table( |
| 2209 | "t", |
| 2210 | m, |
| 2211 | Column("x", Integer, primary_key=True), |
| 2212 | Column("q", Integer), |
| 2213 | PrimaryKeyConstraint("q"), |
| 2214 | ) |
| 2215 | |
| 2216 | def test_pk_col_mismatch_two(self): |
| 2217 | m = MetaData() |
nothing calls this directly
no test coverage detected