mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
bugfix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
__title__ = 'HttpRunner'
|
__title__ = 'HttpRunner'
|
||||||
__description__ = 'HTTP test runner, not just about api test and load test.'
|
__description__ = 'HTTP test runner, not just about api test and load test.'
|
||||||
__url__ = 'https://github.com/HttpRunner/HttpRunner'
|
__url__ = 'https://github.com/HttpRunner/HttpRunner'
|
||||||
__version__ = '1.1.0-beta.1'
|
__version__ = '1.1.0-beta.2'
|
||||||
__author__ = 'debugtalk'
|
__author__ = 'debugtalk'
|
||||||
__author_email__ = 'mail@debugtalk.com'
|
__author_email__ = 'mail@debugtalk.com'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ class TestCase(unittest.TestCase):
|
|||||||
def __init__(self, test_runner, testcase_dict):
|
def __init__(self, test_runner, testcase_dict):
|
||||||
super(TestCase, self).__init__()
|
super(TestCase, self).__init__()
|
||||||
self.test_runner = test_runner
|
self.test_runner = test_runner
|
||||||
self.testcase_dict = testcase_dict
|
self.testcase_dict = copy.copy(testcase_dict)
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
""" run testcase and check result.
|
""" run testcase and check result.
|
||||||
|
|||||||
+1
-1
@@ -331,7 +331,7 @@ def override_variables_binds(variables, new_mapping):
|
|||||||
"""
|
"""
|
||||||
if isinstance(variables, list):
|
if isinstance(variables, list):
|
||||||
variables_ordered_dict = convert_to_order_dict(variables)
|
variables_ordered_dict = convert_to_order_dict(variables)
|
||||||
elif isinstance(variables, OrderedDict):
|
elif isinstance(variables, (OrderedDict, dict)):
|
||||||
variables_ordered_dict = variables
|
variables_ordered_dict = variables
|
||||||
else:
|
else:
|
||||||
raise exception.ParamsError("variables error!")
|
raise exception.ParamsError("variables error!")
|
||||||
|
|||||||
Reference in New Issue
Block a user