mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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):
|
||||
""" validate with functions
|
||||
"""
|
||||
# TODO: move comparator uniform to init_task_suite
|
||||
comparator = utils.get_uniform_comparator(validator_dict["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:
|
||||
testsets = path_or_testsets
|
||||
|
||||
# TODO: move comparator uniform here
|
||||
mapping = mapping or {}
|
||||
return TaskSuite(testsets, mapping, http_client_session)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user