2
0

test_operations.py 446 B

12345678910
  1. from django.db import NotSupportedError, connection
  2. from django.test import SimpleTestCase, skipIfDBFeature
  3. class DatabaseOperationTests(SimpleTestCase):
  4. @skipIfDBFeature('supports_over_clause')
  5. def test_window_frame_raise_not_supported_error(self):
  6. msg = 'This backend does not support window expressions.'
  7. with self.assertRaisesMessage(NotSupportedError, msg):
  8. connection.ops.window_frame_rows_start_end()