Skip to content

Commit

Permalink
#243: Add tests for ilike and nilike operators
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Oct 15, 2021
1 parent e352812 commit 19c48a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/icat/filters/test_where_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class TestICATWhereFilter:
pytest.param("eq", 5, ["%s = '5'"], id="equal"),
pytest.param("ne", 5, ["%s != 5"], id="not equal"),
pytest.param("like", 5, ["%s like '%%5%%'"], id="like"),
pytest.param("ilike", 5, ["UPPER(%s) like UPPER('%%5%%')"], id="ilike"),
pytest.param("nlike", 5, ["%s not like '%%5%%'"], id="not like"),
pytest.param(
"nilike", 5, ["UPPER(%s) not like UPPER('%%5%%')"], id="not ilike",
),
pytest.param("lt", 5, ["%s < '5'"], id="less than"),
pytest.param("lte", 5, ["%s <= '5'"], id="less than or equal"),
pytest.param("gt", 5, ["%s > '5'"], id="greater than"),
Expand Down

0 comments on commit 19c48a5

Please sign in to comment.