mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #33214 -- Added BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
This commit is contained in:
parent
9231526af4
commit
551c997fea
2 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue