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

Method test_inheritance

tests/raw_query/tests.py:383–388  ·  tests/raw_query/tests.py::RawQueryTests.test_inheritance
(self)

Source from the content-addressed store, hash-verified

381 Author.objects.raw(query)[class="st">"test"]
382
383 def test_inheritance(self):
384 f = FriendlyAuthor.objects.create(
385 first_name=class="st">"Wesley", last_name=class="st">"Chun", dob=date(1962, 10, 28)
386 )
387 query = class="st">"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