(self)
| 79 | self.assertEqual(lookup.lhs.target, Item._meta.get_field("modified")) |
| 80 | |
| 81 | def test_transform(self): |
| 82 | query = Query(Author, alias_cols=False) |
| 83 | with register_lookup(CharField, Lower): |
| 84 | where = query.build_where(~Q(name__lower="foo")) |
| 85 | lookup = where.children[0] |
| 86 | self.assertIsInstance(lookup, Exact) |
| 87 | self.assertIsInstance(lookup.lhs, Lower) |
| 88 | self.assertIsInstance(lookup.lhs.lhs, Col) |
| 89 | self.assertIsNone(lookup.lhs.lhs.alias) |
| 90 | self.assertEqual(lookup.lhs.lhs.target, Author._meta.get_field("name")) |
| 91 | |
| 92 | def test_negated_nullable(self): |
| 93 | query = Query(Item) |
nothing calls this directly
no test coverage detected