fix: ensure project meta files exist in generated pytest folder files

This commit is contained in:
debugtalk
2020-06-06 09:38:00 +08:00
parent e8275ab38a
commit 9a4ee8f3a0
3 changed files with 31 additions and 7 deletions

View File

@@ -416,7 +416,10 @@ def load_project_meta(test_path: Text, reload: bool = False) -> ProjectMeta:
# environment variable maybe loaded in debugtalk.py
# thus .env file should be loaded before loading debugtalk.py
dot_env_path = os.path.join(project_working_directory, ".env")
project_meta.env = load_dot_env_file(dot_env_path)
dot_env = load_dot_env_file(dot_env_path)
if dot_env:
project_meta.env = dot_env
project_meta.dot_env_path = dot_env_path
if debugtalk_path:
# load debugtalk.py functions