From bcf9f1ddfe02387ed8c9c961b2850ecac115fe80 Mon Sep 17 00:00:00 2001 From: Emanuele Saccomandi <48432054+emajo@users.noreply.github.com> Date: Mon, 27 May 2024 15:37:11 +0200 Subject: [PATCH] improvement: added not like/contains filters --- fattureincloud_python_sdk/filter/operator.py | 2 ++ test/test_operator.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/fattureincloud_python_sdk/filter/operator.py b/fattureincloud_python_sdk/filter/operator.py index 01786f6d..51674f47 100644 --- a/fattureincloud_python_sdk/filter/operator.py +++ b/fattureincloud_python_sdk/filter/operator.py @@ -12,5 +12,7 @@ class Operator(enum.Enum): IS_NOT = "is not" LIKE = "like" CONTAINS = "contains" + NOT_LIKE = "not like" + NOT_CONTAINS = "not contains" STARTS_WITH = "starts with" ENDS_WITH = "ends with" diff --git a/test/test_operator.py b/test/test_operator.py index 71ee3743..d41026ce 100644 --- a/test/test_operator.py +++ b/test/test_operator.py @@ -33,6 +33,10 @@ def testOperator(self): assert "contains" == Operator.CONTAINS.value + assert "not like" == Operator.NOT_LIKE.value + + assert "not contains" == Operator.NOT_CONTAINS.value + assert "starts with" == Operator.STARTS_WITH.value assert "ends with" == Operator.ENDS_WITH.value