MCPcopy
hub / github.com/django/django / test_params_none

Method test_params_none

tests/raw_query/tests.py:235–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 self.assertIsInstance(repr(qset), str)
234
235 def test_params_none(self):
236 query = "SELECT * FROM raw_query_author WHERE first_name like 'J%'"
237 qset = Author.objects.raw(query, params=None)
238 self.assertEqual(len(qset), 2)
239
240 def test_escaped_percent(self):
241 query = "SELECT * FROM raw_query_author WHERE first_name like 'J%%'"

Callers

nothing calls this directly

Calls 1

rawMethod · 0.45

Tested by

no test coverage detected