Skip to content

Commit

Permalink
Update unit tests to match the new raw string literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
svnscha committed Nov 28, 2023
1 parent 3fb657f commit fdb8e6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_backend_uberAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_uberAgent_in_expression(uberAgent_backend: uberagent):
- valueC*
condition: sel
""")
) == ['fieldA == "valueA" or fieldA == "valueB" or fieldA like "valueC%"']
) == ['fieldA == "valueA" or fieldA == "valueB" or fieldA like r"valueC%"']


def test_uberAgent_cidr_query(uberAgent_backend: uberagent):
Expand All @@ -118,7 +118,7 @@ def test_uberAgent_cidr_query(uberAgent_backend: uberagent):
field|cidr: 192.168.0.0/16
condition: sel
""")
) == ['field like "192.168.%"']
) == ['field like r"192.168.%"']


def test_uberAgent_null_query(uberAgent_backend: uberagent):
Expand Down Expand Up @@ -216,4 +216,4 @@ def test_uberAgent_wildcard_match_expression(uberAgent_backend: uberagent):
- 'Test*Field'
condition: sel
""")
) == ['field like "%Test%Field"']
) == ['field like r"%Test%Field"']

0 comments on commit fdb8e6c

Please sign in to comment.