extract_response when initialize ResponseObject

This commit is contained in:
debugtalk
2017-06-28 23:35:56 +08:00
parent 207998a2f5
commit 997e9d642b
3 changed files with 9 additions and 11 deletions

View File

@@ -105,8 +105,7 @@ class TestRunner(object):
resp = self.client.request(url=url, method=method, **req_kwargs)
resp_obj = response.ResponseObject(resp)
resp_obj.extract_response(self.context)
resp_obj = response.ResponseObject(resp, self.context)
return resp_obj.validate(testcase['response'])
def run_testset(self, testset):