diff --git a/tests/orm/test_querybuilder.py b/tests/orm/test_querybuilder.py index 3be548e2ea..8797fe4e03 100644 --- a/tests/orm/test_querybuilder.py +++ b/tests/orm/test_querybuilder.py @@ -1722,10 +1722,14 @@ class TestJsonFilters: ({'arr': []}, {'attributes.arr': {'contains': []}}, True), # nested arrays ({'arr': [[1, 0], [0, 2]]}, {'attributes.arr': {'contains': [[1, 0]]}}, True), - ({'arr': [[2, 3], [0, 1], []]}, {'attributes.arr': {'contains': [[1, 0]]}}, True), # order doesn't matter + ({'arr': [[2, 3], [0, 1], []]}, {'attributes.arr': {'contains': [[1, 0]]}}, True), ({'arr': [[2, 3], [1]]}, {'attributes.arr': {'contains': [[4]]}}, False), - # TODO: the test below is supposed to pass but currently doesn't - # ({'arr': [[2, 3], [1]]}, {'attributes.arr': {'contains': [[2]]}}, False), + ({'arr': [[1, 0], [0, 2]]}, {'attributes.arr': {'contains': [[3]]}}, False), + ({'arr': [[1, 0], [0, 2]]}, {'attributes.arr': {'contains': [3]}}, False), + ({'arr': [[1, 0], [0, 2]]}, {'attributes.arr': {'contains': [[2]]}}, True), + ({'arr': [[1, 0], [0, 2]]}, {'attributes.arr': {'contains': [2]}}, False), + ({'arr': [[1, 0], [0, 2], 3]}, {'attributes.arr': {'contains': [[3]]}}, False), + ({'arr': [[1, 0], [0, 2], 3]}, {'attributes.arr': {'contains': [3]}}, True), # negations ({'arr': [1, '2', None]}, {'attributes.arr': {'!contains': [1]}}, False), ({'arr': [1, '2', None]}, {'attributes.arr': {'!contains': []}}, False),