MCPcopy
hub / github.com/django/django / test_iterable_lookup_value

Method test_iterable_lookup_value

tests/queries/test_query.py:135–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.assertEqual(query.select_related, {"creator": {}})
134
135 def test_iterable_lookup_value(self):
136 query = Query(Item)
137 where = query.build_where(Q(name=["a", "b"]))
138 name_exact = where.children[0]
139 self.assertIsInstance(name_exact, Exact)
140 self.assertEqual(name_exact.rhs, "['a', 'b']")
141
142 def test_filter_conditional(self):
143 query = Query(Item)

Callers

nothing calls this directly

Calls 3

build_whereMethod · 0.95
QueryClass · 0.90
QClass · 0.90

Tested by

no test coverage detected