summaryrefslogtreecommitdiff
path: root/tests/backends/base/test_operations.py
blob: 4477547c93b124a89d6e3ebf7c3195e349b80b08 (plain)
1
2
3
4
5
6
7
8
9
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()