fix #343: locate debugtalk.py and use as project working directory

This commit is contained in:
httprunner
2018-08-23 13:03:42 +08:00
parent 5e2159b097
commit 98ada8c84f
8 changed files with 70 additions and 68 deletions

View File

@@ -9,9 +9,7 @@ from tests.base import ApiServerUnittest
class TestContext(ApiServerUnittest):
def setUp(self):
project_dir = os.path.join(os.getcwd(), "tests")
loader.load_project_tests(project_dir)
loader.load_debugtalk_module(project_dir)
loader.load_project_tests(os.path.join(os.getcwd(), "tests"))
self.debugtalk_module = loader.project_mapping["debugtalk"]
self.context = context.Context(