MCPcopy
hub / github.com/django/django / test_missing_fields

Method test_missing_fields

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

Source from the content-addressed store, hash-verified

299 self.assertSuccessfulRawQuery(Author, query, authors, translations=translations)
300
301 def test_missing_fields(self):
302 query = "SELECT id, first_name, dob FROM raw_query_author"
303 for author in Author.objects.raw(query):
304 self.assertIsNotNone(author.first_name)
305 # last_name isn't given, but it will be retrieved on demand
306 self.assertIsNotNone(author.last_name)
307
308 def test_missing_fields_without_PK(self):
309 query = "SELECT first_name, dob FROM raw_query_author"

Callers

nothing calls this directly

Calls 1

rawMethod · 0.45

Tested by

no test coverage detected