create HttpSession as wrapper of requests.Session, in order to log more information of request and response

This commit is contained in:
debugtalk
2017-07-03 12:07:40 +08:00
parent 07cb8d1d55
commit ba64e82947
4 changed files with 187 additions and 4 deletions

View File

@@ -1,13 +1,12 @@
import requests
from ate import exception, response
from ate.client import HttpSession
from ate.context import Context
class TestRunner(object):
def __init__(self):
self.client = requests.Session()
self.client = HttpSession()
self.context = Context()
def init_context(self, config_dict, level):