mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-13 19:59:37 +08:00
optimize response validation: if validation failed, then raise ValidationError directly
This commit is contained in:
@@ -14,8 +14,7 @@ class ApiTestCase(unittest.TestCase):
|
||||
def runTest(self):
|
||||
""" run testcase and check result.
|
||||
"""
|
||||
result = self.test_runner.run_test(self.testcase)
|
||||
self.assertEqual(result, (True, []))
|
||||
self.assertTrue(self.test_runner.run_test(self.testcase))
|
||||
|
||||
def create_suite(testset):
|
||||
""" create test suite with a testset, it may include one or several testcases.
|
||||
|
||||
Reference in New Issue
Block a user