mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-25 10:20:11 +08:00
fix: parse config name
This commit is contained in:
@@ -410,6 +410,11 @@ def load_project_meta(test_path: Text) -> ProjectMeta:
|
||||
environments and debugtalk.py functions.
|
||||
|
||||
"""
|
||||
project_meta = ProjectMeta()
|
||||
|
||||
if not test_path:
|
||||
return project_meta
|
||||
|
||||
if test_path in project_meta_cached_mapping:
|
||||
return project_meta_cached_mapping[test_path]
|
||||
|
||||
@@ -417,8 +422,6 @@ def load_project_meta(test_path: Text) -> ProjectMeta:
|
||||
test_path
|
||||
)
|
||||
|
||||
project_meta = ProjectMeta()
|
||||
|
||||
# load .env file
|
||||
# NOTICE:
|
||||
# environment variable maybe loaded in debugtalk.py
|
||||
|
||||
Reference in New Issue
Block a user