Skip to content

Commit 40c8da6

Browse files
Revert removed tests
1 parent 22ad83d commit 40c8da6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/test_api.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,36 @@ def test_not_in_relation_float(self):
15211521
result = self._id_in_result('Version', filters, self.version['id'])
15221522
self.assertFalse(result)
15231523

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+
15241554
def test_in_relation_comma_multi_entity(self):
15251555
"""
15261556
Test that 'in' relation using commas (old format) works with multi_entity fields.

0 commit comments

Comments
 (0)