mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 00:29:37 +08:00
bugfix #100: Null value can only be compared with comparator: eq/equals/==
This commit is contained in:
@@ -119,7 +119,7 @@ def query_json(json_content, query, delimiter='.'):
|
||||
def get_uniform_comparator(comparator):
|
||||
""" convert comparator alias to uniform name
|
||||
"""
|
||||
if comparator in ["eq", "equals", "=="]:
|
||||
if comparator in ["eq", "equals", "==", "is"]:
|
||||
return "equals"
|
||||
elif comparator in ["lt", "less_than"]:
|
||||
return "less_than"
|
||||
|
||||
Reference in New Issue
Block a user