bugfix #100: Null value can only be compared with comparator: eq/equals/==

This commit is contained in:
httprunner
2018-02-23 20:24:32 +08:00
parent 2481f86c3b
commit a0f5f7d40e
3 changed files with 8 additions and 5 deletions

View File

@@ -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"