change validators from dict to list, as there may be several tests on one filed

This commit is contained in:
debugtalk
2017-06-29 18:13:50 +08:00
parent abcba302ae
commit cd4e635d83
12 changed files with 107 additions and 108 deletions

View File

@@ -16,7 +16,7 @@ class ApiTestCase(unittest.TestCase):
""" run testcase and check result.
"""
result = self.test_runner.run_test(self.testcase)
self.assertEqual(result, (True, {}))
self.assertEqual(result, (True, []))
def create_suite(testset):
""" create test suite with a testset, it may include one or several testcases.