Skip to content

Commit

Permalink
Ingnore postgeresql
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdavidzeng committed Jun 17, 2020
1 parent a22a713 commit 9df379a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/interface/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand All @@ -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}
Expand All @@ -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"}
Expand Down

0 comments on commit 9df379a

Please sign in to comment.