(self, meth, test_case)
| 1501 | (Query.order_by, lambda meth, User: meth(User.name)), |
| 1502 | ) |
| 1503 | def test_from_statement_text(self, meth, test_case): |
| 1504 | User = self.classes.User |
| 1505 | s = fixture_session() |
| 1506 | q = s.query(User) |
| 1507 | |
| 1508 | q = q.from_statement(text("x")) |
| 1509 | m = functools.partial(meth, q) |
| 1510 | |
| 1511 | assert_raises( |
| 1512 | sa_exc.InvalidRequestError, |
| 1513 | testing.resolve_lambda, |
| 1514 | test_case, |
| 1515 | meth=m, |
| 1516 | User=User, |
| 1517 | s=s, |
| 1518 | ) |
| 1519 | |
| 1520 | def test_illegal_coercions(self): |
| 1521 | User = self.classes.User |
nothing calls this directly
no test coverage detected