diff --git a/test/interface/test_filters.py b/test/interface/test_filters.py index dafb972..d152f54 100644 --- a/test/interface/test_filters.py +++ b/test/interface/test_filters.py @@ -1331,10 +1331,13 @@ def test_filter_by_hybrid_methods(self, session): class TestApplyJsonContainsFilter: @pytest.mark.usefixtures('multiple_tils_inserted') - def test_til_not_contains_value(self, session, is_sqlite): + def test_til_not_contains_value(self, session, is_sqlite, is_postgresql): if is_sqlite: pytest.skip() + if is_postgresql: + pytest.skip() + query = session.query(Til) filters = [ {'field': 'refer_info', 'op': 'json_contains', 'value': 'invalid'} @@ -1346,10 +1349,13 @@ def test_til_not_contains_value(self, session, is_sqlite): assert len(result) == 0 @pytest.mark.usefixtures('multiple_tils_inserted') - def test_til_contains_int_value(self, session, is_sqlite): + def test_til_contains_int_value(self, session, is_sqlite, is_postgresql): if is_sqlite: pytest.skip() + if is_postgresql: + pytest.skip() + query = session.query(Til) filters = [ {'field': 'refer_info', 'op': 'json_contains', 'value': 1} @@ -1362,10 +1368,13 @@ def test_til_contains_int_value(self, session, is_sqlite): assert result[0].id == 2 @pytest.mark.usefixtures('multiple_tils_inserted') - def test_til_contains_str_value(self, session, is_sqlite): + def test_til_contains_str_value(self, session, is_sqlite, is_postgresql): if is_sqlite: pytest.skip() + if is_postgresql: + pytest.skip() + query = session.query(Til) filters = [ {'field': 'refer_info', 'op': 'json_contains', 'value': "foo"}