lower testcase key

This commit is contained in:
httprunner
2017-09-13 16:17:21 +08:00
parent 8d568d9e0d
commit 93d4a78210
5 changed files with 45 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
from ate import exception, response
from ate import exception, response, utils
from ate.client import HttpSession
from ate.context import Context
@@ -48,6 +48,9 @@ class Runner(object):
}
@param (str) context level, testcase or testset
"""
# convert keys in request headers to lowercase
config_dict = utils.lower_dict_key(config_dict)
self.context.init_context(level)
self.context.config_context(config_dict, level)