refactor: make loader as submodule, split to check/locate/load/cases

This commit is contained in:
debugtalk
2019-12-05 23:16:12 +08:00
parent d4b7d8f04f
commit a04b5e9593
14 changed files with 1199 additions and 1150 deletions

View File

@@ -2,6 +2,7 @@ import os
import time
from httprunner import loader, parser, runner
from httprunner.loader import cases
from tests.api_server import HTTPBIN_SERVER
from tests.base import ApiServerUnittest
@@ -9,8 +10,7 @@ from tests.base import ApiServerUnittest
class TestRunner(ApiServerUnittest):
def setUp(self):
loader.load_project_tests(os.path.join(os.getcwd(), "tests"))
project_mapping = loader.project_mapping
project_mapping = cases.load_project_tests(os.path.join(os.getcwd(), "tests"))
self.debugtalk_functions = project_mapping["functions"]
config = {