(self)
| 138 | ) |
| 139 | |
| 140 | def test_query_expr(self): |
| 141 | (User,) = self.classes("User") |
| 142 | |
| 143 | self._run_cache_key_fixture( |
| 144 | lambda: ( |
| 145 | with_expression(User.name, true()), |
| 146 | with_expression(User.name, null()), |
| 147 | with_expression(User.name, func.foobar()), |
| 148 | with_expression(User.name, User.name == "test"), |
| 149 | ), |
| 150 | compare_values=True, |
| 151 | ) |
| 152 | |
| 153 | self._run_cache_key_fixture( |
| 154 | lambda: ( |
| 155 | Load(User).with_expression(User.name, true()), |
| 156 | Load(User).with_expression(User.name, null()), |
| 157 | Load(User).with_expression(User.name, func.foobar()), |
| 158 | Load(User).with_expression(User.name, User.name == "test"), |
| 159 | ), |
| 160 | compare_values=True, |
| 161 | ) |
| 162 | |
| 163 | def test_loader_criteria(self): |
| 164 | User, Address = self.classes("User", "Address") |
nothing calls this directly
no test coverage detected