1
0
mirror of https://github.com/django/django.git synced 2025-02-09 17:06:05 +00:00
django/tests/backends/base/test_operations.py
Mads Jensen d549b88050 Fixed #26608 -- Added support for window expressions (OVER clause).
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes,
Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie
Cockburn for initial patch.
2017-09-18 09:42:29 -04:00

11 lines
446 B
Python

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()