MCPcopy
hub / github.com/django/django / test_db_default_primary_key

Method test_db_default_primary_key

tests/bulk_create/tests.py:883–885  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

881 "can_return_rows_from_bulk_insert", "supports_expression_defaults"
882 )
883 def test_db_default_primary_key(self):
884 (obj,) = DbDefaultPrimaryKey.objects.bulk_create([DbDefaultPrimaryKey()])
885 self.assertIsInstance(obj.id, datetime)
886
887 @skipUnlessDBFeature(
888 "can_return_rows_from_bulk_insert", "supports_expression_defaults"

Callers

nothing calls this directly

Calls 2

DbDefaultPrimaryKeyClass · 0.85
bulk_createMethod · 0.80

Tested by

no test coverage detected