fix: ensure compatibility issues between testcase format v2 and v3

This commit is contained in:
debugtalk
2020-05-27 18:52:45 +08:00
parent 051c1f26b7
commit 3032974b73
4 changed files with 98 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ def uniform_validator(validator):
Args:
validator (dict): validator maybe in two formats:
format1: this is kept for compatiblity with the previous versions.
format1: this is kept for compatibility with the previous versions.
{"check": "status_code", "assert": "eq", "expect": 201}
{"check": "$resp_body_success", "assert": "eq", "expect": True}
format2: recommended new version, {assert: [check_item, expected_value]}