(self)
| 89 | self._assert_cache_key(q1._cache_key, [l1, l2]) |
| 90 | |
| 91 | def test_chained_add(self): |
| 92 | User = self.classes.User |
| 93 | session = fixture_session() |
| 94 | |
| 95 | def l1(): |
| 96 | return session.query(User) |
| 97 | |
| 98 | def l2(q): |
| 99 | return q.filter(User.name == bindparam("name")) |
| 100 | |
| 101 | q1 = self.bakery(l1) |
| 102 | |
| 103 | q2 = q1.with_criteria(l2) |
| 104 | is_not(q2, q1) |
| 105 | |
| 106 | self._assert_cache_key(q1._cache_key, [l1]) |
| 107 | self._assert_cache_key(q2._cache_key, [l1, l2]) |
| 108 | |
| 109 | def test_chained_add_operator(self): |
| 110 | User = self.classes.User |
nothing calls this directly
no test coverage detected