(self, dml, twotable, error)
| 418 | (False, False), (True, False), (True, True), argnames="twotable,error" |
| 419 | ) |
| 420 | def test_dml(self, dml, twotable, error): |
| 421 | if dml.update: |
| 422 | stmt = update(self.a) |
| 423 | elif dml.delete: |
| 424 | stmt = delete(self.a) |
| 425 | else: |
| 426 | dml.fail() |
| 427 | |
| 428 | stmt = stmt.where(self.a.c.col_a == "a1") |
| 429 | if twotable: |
| 430 | stmt = stmt.where(self.b.c.col_b == "a1") |
| 431 | |
| 432 | if not error: |
| 433 | stmt = stmt.where(self.b.c.col_b == self.a.c.col_a) |
| 434 | |
| 435 | froms, _ = find_unmatching_froms(stmt) |
| 436 | if error: |
| 437 | assert froms |
| 438 | else: |
| 439 | assert not froms |
| 440 | |
| 441 | |
| 442 | class TestLinterRoundTrip(fixtures.TablesTest): |
nothing calls this directly
no test coverage detected