diff options
Diffstat (limited to 'tests/backends/base/test_operations.py')
| -rw-r--r-- | tests/backends/base/test_operations.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/backends/base/test_operations.py b/tests/backends/base/test_operations.py new file mode 100644 index 0000000000..4477547c93 --- /dev/null +++ b/tests/backends/base/test_operations.py @@ -0,0 +1,10 @@ +from django.db import NotSupportedError, connection +from django.test import SimpleTestCase, skipIfDBFeature + + +class DatabaseOperationTests(SimpleTestCase): + @skipIfDBFeature('supports_over_clause') + def test_window_frame_raise_not_supported_error(self): + msg = 'This backend does not support window expressions.' + with self.assertRaisesMessage(NotSupportedError, msg): + connection.ops.window_frame_rows_start_end() |
