mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +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
|
# locate PWD and load debugtalk.py functions
|
||||||
project_meta.PWD = project_working_directory
|
project_meta.PWD = project_working_directory
|
||||||
project_meta.functions = debugtalk_functions
|
project_meta.functions = debugtalk_functions
|
||||||
project_meta.test_path = os.path.abspath(test_path)[
|
project_meta.debugtalk_path = debugtalk_path
|
||||||
len(project_working_directory) + 1 :
|
|
||||||
]
|
|
||||||
|
|
||||||
return project_meta
|
return project_meta
|
||||||
|
|||||||
@@ -81,10 +81,10 @@ class TestCase(BaseModel):
|
|||||||
|
|
||||||
class ProjectMeta(BaseModel):
|
class ProjectMeta(BaseModel):
|
||||||
debugtalk_py: Text = "" # debugtalk.py file content
|
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 = {}
|
env: Env = {}
|
||||||
PWD: Text = os.getcwd()
|
PWD: Text = os.getcwd() # project working directory, the path debugtalk.py located
|
||||||
test_path: Text = None # run with specified test path
|
|
||||||
|
|
||||||
|
|
||||||
class TestsMapping(BaseModel):
|
class TestsMapping(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user