mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
add TODO for comparator uniform
This commit is contained in:
@@ -217,6 +217,7 @@ class Context(object):
|
|||||||
def do_validation(self, validator_dict):
|
def do_validation(self, validator_dict):
|
||||||
""" validate with functions
|
""" validate with functions
|
||||||
"""
|
"""
|
||||||
|
# TODO: move comparator uniform to init_task_suite
|
||||||
comparator = utils.get_uniform_comparator(validator_dict["comparator"])
|
comparator = utils.get_uniform_comparator(validator_dict["comparator"])
|
||||||
validate_func = self.testcase_parser.get_bind_function(comparator)
|
validate_func = self.testcase_parser.get_bind_function(comparator)
|
||||||
|
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ def init_task_suite(path_or_testsets, mapping=None, http_client_session=None):
|
|||||||
else:
|
else:
|
||||||
testsets = path_or_testsets
|
testsets = path_or_testsets
|
||||||
|
|
||||||
|
# TODO: move comparator uniform here
|
||||||
mapping = mapping or {}
|
mapping = mapping or {}
|
||||||
return TaskSuite(testsets, mapping, http_client_session)
|
return TaskSuite(testsets, mapping, http_client_session)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user