mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 16:29:31 +08:00
add testcase loader interface
This commit is contained in:
@@ -16,7 +16,7 @@ class TestTask(ApiServerUnittest):
|
||||
|
||||
def test_create_suite(self):
|
||||
testcase_file_path = os.path.join(os.getcwd(), 'tests/data/demo_testset_variables.yml')
|
||||
testset = loader.load_test_file(testcase_file_path)
|
||||
testset = loader._load_test_file(testcase_file_path)
|
||||
suite = task.TestSuite(testset)
|
||||
self.assertEqual(suite.countTestCases(), 3)
|
||||
for testcase in suite:
|
||||
|
||||
Reference in New Issue
Block a user