mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #33214 -- Added BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9231526af4
commit
551c997fea
@@ -85,6 +85,11 @@ class SimpleDatabaseOperationTests(SimpleTestCase):
|
||||
now = timezone.now()
|
||||
self.assertEqual(self.ops.adapt_timefield_value(now), str(now))
|
||||
|
||||
def test_format_for_duration_arithmetic(self):
|
||||
msg = self.may_require_msg % 'format_for_duration_arithmetic'
|
||||
with self.assertRaisesMessage(NotImplementedError, msg):
|
||||
self.ops.format_for_duration_arithmetic(None)
|
||||
|
||||
def test_date_extract_sql(self):
|
||||
with self.assertRaisesMessage(NotImplementedError, self.may_require_msg % 'date_extract_sql'):
|
||||
self.ops.date_extract_sql(None, None)
|
||||
|
||||
Reference in New Issue
Block a user