From bb8098ff5d89921ebd5eef18a633af344315b584 Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Fri, 15 Oct 2021 13:59:58 +0000 Subject: [PATCH] #243: Add tests for ilike and nilike operators --- test/icat/filters/test_where_filter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/icat/filters/test_where_filter.py b/test/icat/filters/test_where_filter.py index 2ae808ad..1b0d7776 100644 --- a/test/icat/filters/test_where_filter.py +++ b/test/icat/filters/test_where_filter.py @@ -14,7 +14,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"),