MCPcopy
hub / github.com/django/django / test_inheritance

Method test_inheritance

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

Source from the content-addressed store, hash-verified

381 Author.objects.raw(query)["test"]
382
383 def test_inheritance(self):
384 f = FriendlyAuthor.objects.create(
385 first_name="Wesley", last_name="Chun", dob=date(1962, 10, 28)
386 )
387 query = "SELECT * FROM raw_query_friendlyauthor"
388 self.assertEqual([o.pk for o in FriendlyAuthor.objects.raw(query)], [f.pk])
389
390 def test_query_count(self):
391 self.assertNumQueries(

Callers

nothing calls this directly

Calls 3

dateFunction · 0.85
createMethod · 0.45
rawMethod · 0.45

Tested by

no test coverage detected