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

@@ -11,10 +11,10 @@ class TestRunner(ApiServerUnittest):
def setUp(self):
project_mapping = loader.load_project_tests(os.path.join(os.getcwd(), "tests"))
self.debugtalk_module = project_mapping["debugtalk"]
self.debugtalk_functions = project_mapping["functions"]
config_dict = {
"variables": self.debugtalk_module["variables"],
"functions": self.debugtalk_module["functions"]
"variables": {},
"functions": self.debugtalk_functions
}
self.test_runner = runner.Runner(config_dict)
self.reset_all()
@@ -36,8 +36,8 @@ class TestRunner(ApiServerUnittest):
testcases = loader.load_file(testcase_file_path)
config_dict = {
"variables": self.debugtalk_module["variables"],
"functions": self.debugtalk_module["functions"]
"variables": {},
"functions": self.debugtalk_functions
}
test_runner = runner.Runner(config_dict)
@@ -81,8 +81,8 @@ class TestRunner(ApiServerUnittest):
config_dict = {
"name": "basic test with httpbin",
"variables": self.debugtalk_module["variables"],
"functions": self.debugtalk_module["functions"],
"variables": {},
"functions": self.debugtalk_functions,
"request": {
"base_url": HTTPBIN_SERVER
},
@@ -130,8 +130,8 @@ class TestRunner(ApiServerUnittest):
def test_run_testcase_with_hooks_modify_request(self):
config_dict = {
"name": "basic test with httpbin",
"variables": self.debugtalk_module["variables"],
"functions": self.debugtalk_module["functions"],
"variables": {},
"functions": self.debugtalk_functions,
"request": {
"base_url": HTTPBIN_SERVER
}