mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-06 15:01:22 +08:00
relocate file loader
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import os
|
||||
import time
|
||||
|
||||
from httprunner import HttpRunner, exceptions, runner
|
||||
from httprunner import HttpRunner, exceptions, loader, runner
|
||||
from httprunner.testcase import TestcaseLoader
|
||||
from httprunner.utils import FileUtils, deep_update_dict
|
||||
from httprunner.utils import deep_update_dict
|
||||
from tests.base import ApiServerUnittest
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class TestRunner(ApiServerUnittest):
|
||||
|
||||
def test_run_single_testcase(self):
|
||||
for testcase_file_path in self.testcase_file_path_list:
|
||||
testcases = FileUtils.load_file(testcase_file_path)
|
||||
testcases = loader.load_file(testcase_file_path)
|
||||
|
||||
config_dict = {
|
||||
"path": testcase_file_path
|
||||
@@ -393,7 +393,7 @@ class TestRunner(ApiServerUnittest):
|
||||
def test_bugfix_type_match(self):
|
||||
testcase_file_path = os.path.join(
|
||||
os.getcwd(), 'tests/data/test_bugfix.yml')
|
||||
testcases = FileUtils.load_file(testcase_file_path)
|
||||
testcases = loader.load_file(testcase_file_path)
|
||||
config_dict = {
|
||||
"path": testcase_file_path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user