mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-28 20:09:36 +08:00
#29: refactor validator:
1, relocate validate functions; 2, add unittest for custom defined validators.
This commit is contained in:
@@ -27,6 +27,12 @@ class TestRunner(ApiServerUnittest):
|
||||
def test_run_single_testcase(self):
|
||||
for testcase_file_path in self.testcase_file_path_list:
|
||||
testcases = testcase._load_file(testcase_file_path)
|
||||
|
||||
config_dict = {
|
||||
"path": testcase_file_path
|
||||
}
|
||||
self.test_runner.init_config(config_dict, "testset")
|
||||
|
||||
test = testcases[0]["test"]
|
||||
self.assertTrue(self.test_runner._run_test(test))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user