Skip to content

Commit

Permalink
improvement: added not like/contains filters
Browse files Browse the repository at this point in the history
  • Loading branch information
emajo authored May 27, 2024
1 parent 13d7944 commit bcf9f1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fattureincloud_python_sdk/filter/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions test/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcf9f1d

Please sign in to comment.