@@ -1521,6 +1521,36 @@ def test_not_in_relation_float(self):
1521
1521
result = self ._id_in_result ('Version' , filters , self .version ['id' ])
1522
1522
self .assertFalse (result )
1523
1523
1524
+ def test_in_relation_comma_list (self ):
1525
+ """
1526
+ Test that 'in' relation using commas (old format) works with list fields.
1527
+ """
1528
+ filters = [['frame_count' , 'in' , self .version ['frame_count' ], 33 ],
1529
+ ['project' , 'is' , self .project ]]
1530
+
1531
+ result = self ._id_in_result ('Version' , filters , self .version ['id' ])
1532
+ self .assertTrue (result )
1533
+
1534
+ def test_in_relation_list_list (self ):
1535
+ """
1536
+ Test that 'in' relation using list (new format) works with list fields.
1537
+ """
1538
+ filters = [['frame_count' , 'in' , [self .version ['frame_count' ], 33 ]],
1539
+ ['project' , 'is' , self .project ]]
1540
+
1541
+ result = self ._id_in_result ('Version' , filters , self .version ['id' ])
1542
+ self .assertTrue (result )
1543
+
1544
+ def test_not_in_relation_list (self ):
1545
+ """
1546
+ Test that 'not_in' relation using commas (old format) works with list fields.
1547
+ """
1548
+ filters = [['frame_count' , 'not_in' , [self .version ['frame_count' ], 33 ]],
1549
+ ['project' , 'is' , self .project ]]
1550
+
1551
+ result = self ._id_in_result ('Version' , filters , self .version ['id' ])
1552
+ self .assertFalse (result )
1553
+
1524
1554
def test_in_relation_comma_multi_entity (self ):
1525
1555
"""
1526
1556
Test that 'in' relation using commas (old format) works with multi_entity fields.
0 commit comments