MCPcopy
hub / github.com/django/django / test_uuid7_shift_unsupported

Method test_uuid7_shift_unsupported

tests/db_functions/test_uuid.py:93–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 @skipUnlessDBFeature("supports_uuid7_function")
92 @skipIfDBFeature("supports_uuid7_function_shift")
93 def test_uuid7_shift_unsupported(self):
94 msg = "The shift argument to UUID7 is not supported on this database backend."
95
96 with self.assertRaisesMessage(NotSupportedError, msg):
97 UUIDModel.objects.update(uuid=UUID7(shift=timedelta(hours=12)))

Callers

nothing calls this directly

Calls 3

UUID7Class · 0.90
assertRaisesMessageMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected