Skip to content

Commit

Permalink
Revert removed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-villavicencio-adsk committed Jun 19, 2024
1 parent 22ad83d commit 40c8da6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,36 @@ def test_not_in_relation_float(self):
result = self._id_in_result('Version', filters, self.version['id'])
self.assertFalse(result)

def test_in_relation_comma_list(self):
"""
Test that 'in' relation using commas (old format) works with list fields.
"""
filters = [['frame_count', 'in', self.version['frame_count'], 33],
['project', 'is', self.project]]

result = self._id_in_result('Version', filters, self.version['id'])
self.assertTrue(result)

def test_in_relation_list_list(self):
"""
Test that 'in' relation using list (new format) works with list fields.
"""
filters = [['frame_count', 'in', [self.version['frame_count'], 33]],
['project', 'is', self.project]]

result = self._id_in_result('Version', filters, self.version['id'])
self.assertTrue(result)

def test_not_in_relation_list(self):
"""
Test that 'not_in' relation using commas (old format) works with list fields.
"""
filters = [['frame_count', 'not_in', [self.version['frame_count'], 33]],
['project', 'is', self.project]]

result = self._id_in_result('Version', filters, self.version['id'])
self.assertFalse(result)

def test_in_relation_comma_multi_entity(self):
"""
Test that 'in' relation using commas (old format) works with multi_entity fields.
Expand Down

0 comments on commit 40c8da6

Please sign in to comment.