MCPcopy
hub / github.com/django/django / setUpTestData

Method setUpTestData

tests/test_utils/tests.py:456–458  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

454class AssertNumQueriesContextManagerTests(TestCase):
455 @classmethod
456 def setUpTestData(cls):
457 cls.person_pk = str(Person.objects.create(name="test").pk)
458 cls.url = f"/test_utils/get_person/{cls.person_pk}/"
459
460 def test_simple(self):
461 with self.assertNumQueries(0):

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected