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

Method setUpTestData

tests/db_functions/json/test_json_object.py:14–20  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

12class JSONObjectTests(TestCase):
13 @classmethod
14 def setUpTestData(cls):
15 Author.objects.bulk_create(
16 [
17 Author(name="Ivan Ivanov", alias="iivanov"),
18 Author(name="Bertha Berthy", alias="bberthy"),
19 ]
20 )
21
22 def test_empty(self):
23 obj = Author.objects.annotate(json_object=JSONObject()).first()

Callers

nothing calls this directly

Calls 2

bulk_createMethod · 0.80
AuthorClass · 0.50

Tested by

no test coverage detected