HttpSession can be called with full url or with only path

This commit is contained in:
httprunner
2017-07-03 12:45:24 +08:00
parent 7fd0f715ca
commit 3c60bbfac3
3 changed files with 19 additions and 16 deletions

View File

@@ -5,8 +5,8 @@ from ate.context import Context
class TestRunner(object):
def __init__(self):
self.client = HttpSession()
def __init__(self, base_url=None):
self.client = HttpSession(base_url)
self.context = Context()
def init_context(self, config_dict, level):