@@ -243,7 +243,6 @@ def test_prefixlen_lte_lookup_sql(self):
243
243
def test_query_filter_f_expression (self ):
244
244
self .model .objects .filter (field = F ('field' ))
245
245
246
- @skipIf (VERSION < (1 , 11 ), 'Subquery added in Django 1.11. https://docs.djangoproject.com/en/1.11/ref/models/expressions/#subquery-expressions' )
247
246
def test_query_filter_subquery (self ):
248
247
from django .db .models import OuterRef , Subquery
249
248
self .model .objects .annotate (
@@ -598,7 +597,6 @@ def test_iregex_lookup(self):
598
597
def test_query_filter_f_expression (self ):
599
598
self .model .objects .filter (field = F ('field' ))
600
599
601
- @skipIf (VERSION < (1 , 11 ), 'Subquery added in Django 1.11. https://docs.djangoproject.com/en/1.11/ref/models/expressions/#subquery-expressions' )
602
600
def test_query_filter_subquery (self ):
603
601
from django .db .models import OuterRef , Subquery
604
602
self .model .objects .annotate (
@@ -678,7 +676,6 @@ def test_save_single_item(self):
678
676
def test_save_multiple_items (self ):
679
677
InetArrayTestModel (field = ['10.1.1.1' , '10.1.1.2' ]).save ()
680
678
681
- @skipIf (VERSION < (1 , 10 ), 'ArrayField does not return correct types in Django < 1.10. https://code.djangoproject.com/ticket/25143' )
682
679
def test_retrieves_ipv4_ipinterface_type (self ):
683
680
instance = InetArrayTestModel (field = ['10.1.1.1/24' ])
684
681
instance .save ()
@@ -697,7 +694,6 @@ def test_save_single_item(self):
697
694
def test_save_multiple_items (self ):
698
695
CidrArrayTestModel (field = ['10.1.1.0/24' , '10.1.2.0/24' ]).save ()
699
696
700
- @skipIf (VERSION < (1 , 10 ), 'ArrayField does not return correct types in Django < 1.10. https://code.djangoproject.com/ticket/25143' )
701
697
def test_retrieves_ipv4_ipnetwork_type (self ):
702
698
instance = CidrArrayTestModel (field = ['10.1.1.0/24' ])
703
699
instance .save ()
@@ -716,7 +712,6 @@ def test_save_single_item(self):
716
712
def test_save_multiple_items (self ):
717
713
MACArrayTestModel (field = ['00:aa:2b:c3:dd:44' , '00:aa:2b:c3:dd:45' ]).save ()
718
714
719
- @skipIf (VERSION < (1 , 10 ), 'ArrayField does not return correct types in Django < 1.10. https://code.djangoproject.com/ticket/25143' )
720
715
def test_retrieves_eui_type (self ):
721
716
instance = MACArrayTestModel (field = ['00:aa:2b:c3:dd:44' ])
722
717
instance .save ()
@@ -735,7 +730,6 @@ def test_save_single_item(self):
735
730
def test_save_multiple_items (self ):
736
731
MAC8ArrayTestModel (field = ['00:aa:2b:c3:dd:44:55:ff' , '00:aa:2b:c3:dd:45:7e:6b' ]).save ()
737
732
738
- @skipIf (VERSION < (1 , 10 ), 'ArrayField does not return correct types in Django < 1.10. https://code.djangoproject.com/ticket/25143' )
739
733
def test_retrieves_eui_type (self ):
740
734
instance = MAC8ArrayTestModel (field = ['00:aa:2b:c3:dd:44:55:67' ])
741
735
instance .save ()
@@ -745,7 +739,6 @@ def test_retrieves_eui_type(self):
745
739
746
740
747
741
class TestAggregate (TestCase ):
748
- @skipIf (VERSION < (1 , 9 ), 'Postgres aggregates not supported in Django < 1.9' )
749
742
def test_aggregate_inet (self ):
750
743
from django .contrib .postgres .aggregates import ArrayAgg
751
744
inet = IPv4Interface ('10.20.30.20/32' )
@@ -759,7 +752,6 @@ def test_aggregate_inet(self):
759
752
AggregateTestChildModel .objects .create (parent = parent , network = network , inet = inet )
760
753
self .assertEqual (inet_qs [0 ].agg_inet , [inet ])
761
754
762
- @skipIf (VERSION < (1 , 9 ), 'Postgres aggregates not supported in Django < 1.9' )
763
755
def test_aggregate_network (self ):
764
756
from django .contrib .postgres .aggregates import ArrayAgg
765
757
inet = IPv4Interface ('10.20.30.20/32' )
0 commit comments