Skip to content

Commit

Permalink
Gate window function test to Django 4.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Nov 16, 2023
1 parent 0f58135 commit d4f434c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_django.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from unittest import SkipTest

import django
from django.db import OperationalError, ProgrammingError
from django.db.models import Window
from django.db.models.functions import Rank
Expand Down Expand Up @@ -54,6 +55,8 @@ def test_union_with_first(self):
class WindowFunctions(TestCase):

def test_heterogeneous_filter_in_cte(self):
if django.VERSION < (4, 2):
raise SkipTest("feature added in Django 4.2")
from django_cte import With
cte = With(
Order.objects.annotate(
Expand Down

0 comments on commit d4f434c

Please sign in to comment.