mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: add ProjectMeta debugtalk_path
This commit is contained in:
@@ -427,8 +427,6 @@ def load_project_meta(test_path: Text, reload: bool = False) -> ProjectMeta:
|
||||
# locate PWD and load debugtalk.py functions
|
||||
project_meta.PWD = project_working_directory
|
||||
project_meta.functions = debugtalk_functions
|
||||
project_meta.test_path = os.path.abspath(test_path)[
|
||||
len(project_working_directory) + 1 :
|
||||
]
|
||||
project_meta.debugtalk_path = debugtalk_path
|
||||
|
||||
return project_meta
|
||||
|
||||
@@ -81,10 +81,10 @@ class TestCase(BaseModel):
|
||||
|
||||
class ProjectMeta(BaseModel):
|
||||
debugtalk_py: Text = "" # debugtalk.py file content
|
||||
functions: FunctionsMapping = {}
|
||||
debugtalk_path: Text = "" # debugtalk.py file path
|
||||
functions: FunctionsMapping = {} # functions defined in debugtalk.py
|
||||
env: Env = {}
|
||||
PWD: Text = os.getcwd()
|
||||
test_path: Text = None # run with specified test path
|
||||
PWD: Text = os.getcwd() # project working directory, the path debugtalk.py located
|
||||
|
||||
|
||||
class TestsMapping(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user