fix: convert testcase validator, content => body

This commit is contained in:
debugtalk
2020-05-17 09:56:11 +08:00
parent 5a8af565d8
commit 85f02c763f
+1 -3
View File
@@ -261,9 +261,7 @@ class HarParser(object):
if isinstance(value, (dict, list)): if isinstance(value, (dict, list)):
continue continue
teststep_dict["validate"].append( teststep_dict["validate"].append({"eq": ["body.{}".format(key), value]})
{"eq": ["content.{}".format(key), value]}
)
def _prepare_teststep(self, entry_json): def _prepare_teststep(self, entry_json):
""" extract info from entry dict and make teststep """ extract info from entry dict and make teststep