summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/base/test_operations.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/backends/base/test_operations.py b/tests/backends/base/test_operations.py
index 1cfea44e83..b7b7b9e3fc 100644
--- a/tests/backends/base/test_operations.py
+++ b/tests/backends/base/test_operations.py
@@ -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)