fix #189: remove file path dependency

This commit is contained in:
debugtalk
2018-08-23 16:11:26 +08:00
parent e2ba773e78
commit cb44fafebf
7 changed files with 17 additions and 39 deletions

View File

@@ -424,9 +424,7 @@ def _load_test_file(file_path):
"""
testcase = {
"config": {
"path": file_path
},
"config": {},
"teststeps": []
}
@@ -856,9 +854,7 @@ def load_test_folder(test_folder_path):
# TODO: add JSON schema validation
testcase = {
"config": {
"path": test_file_path
},
"config": {},
"teststeps": []
}
for item in items:
@@ -914,12 +910,12 @@ def load_project_tests(test_path):
"""
reset_loader()
locate_pwd(test_path)
load_builtin_module()
load_api_folder(os.path.join(project_working_directory, "api"))
load_test_folder(os.path.join(project_working_directory, "suite"))
# load .env
load_dot_env_file()
load_builtin_module()
load_debugtalk_module()
load_api_folder(os.path.join(project_working_directory, "api"))
# TODO: replace suite with testcases
load_test_folder(os.path.join(project_working_directory, "suite"))
def load_testcases(path):