fix: convert testcase validator, content => body

This commit is contained in:
debugtalk
2020-05-17 09:56:11 +08:00
parent 5a8af565d8
commit 85f02c763f

View File

@@ -261,9 +261,7 @@ class HarParser(object):
if isinstance(value, (dict, list)):
continue
teststep_dict["validate"].append(
{"eq": ["content.{}".format(key), value]}
)
teststep_dict["validate"].append({"eq": ["body.{}".format(key), value]})
def _prepare_teststep(self, entry_json):
""" extract info from entry dict and make teststep