MCPcopy
hub / github.com/django/django / test_no_fields

Method test_no_fields

tests/queries/test_bulk_update.py:130–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 databases = {"default", "other"}
129
130 def test_no_fields(self):
131 msg = "Field names must be given to bulk_update()."
132 with self.assertRaisesMessage(ValueError, msg):
133 Note.objects.bulk_update([], fields=[])
134
135 def test_invalid_batch_size(self):
136 msg = "Batch size must be a positive integer."

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.80
bulk_updateMethod · 0.45

Tested by

no test coverage detected