merge_validator: support checking unhashable values such as dict

This commit is contained in:
httprunner
2018-04-23 16:05:31 +08:00
parent e1bcb74c5f
commit e263021c3b
7 changed files with 53 additions and 16 deletions

View File

@@ -13,6 +13,7 @@
validate:
- "eq": ["status_code", 0]
- "len_eq": ["content.token", 12]
- "contains": [{"a": 1, "b": 2}, "a"]
- api:
def: create_user($uid, $user_name, $user_password, $token)