mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 05:49:40 +08:00
create HttpSession as wrapper of requests.Session, in order to log more information of request and response
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user