remove debugtalk.py variables mechanism

This commit is contained in:
httprunner
2018-11-15 14:48:44 +08:00
parent 2c90c64dc2
commit 64a960d490
21 changed files with 135 additions and 237 deletions

View File

@@ -10,11 +10,9 @@ class TestContext(ApiServerUnittest):
def setUp(self):
project_mapping = loader.load_project_tests(os.path.join(os.getcwd(), "tests"))
self.debugtalk_module = project_mapping["debugtalk"]
self.context = context.Context(
self.debugtalk_module["variables"],
self.debugtalk_module["functions"]
variables={"SECRET_KEY": "DebugTalk"},
functions=project_mapping["functions"]
)
testcase_file_path = os.path.join(os.getcwd(), 'tests/data/demo_binds.yml')
self.testcases = loader.load_file(testcase_file_path)