mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 16:59:34 +08:00
change: format copied debugtalk.py
This commit is contained in:
13
examples/postman_echo/debugtalk.py
Normal file
13
examples/postman_echo/debugtalk.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
from httprunner import __version__
|
||||||
|
|
||||||
|
|
||||||
|
def get_httprunner_version():
|
||||||
|
return __version__
|
||||||
|
|
||||||
|
|
||||||
|
def sum_two(m, n):
|
||||||
|
return m + n
|
||||||
|
|
||||||
|
|
||||||
|
def get_variables():
|
||||||
|
return {"foo1": "session_bar1"}
|
||||||
@@ -112,6 +112,9 @@ def __ensure_project_meta_files(tests_path: Text) -> NoReturn:
|
|||||||
logger.info(f"copy debugtalk.py to {debugtalk_new_path}")
|
logger.info(f"copy debugtalk.py to {debugtalk_new_path}")
|
||||||
copyfile(debugtalk_path, debugtalk_new_path)
|
copyfile(debugtalk_path, debugtalk_new_path)
|
||||||
|
|
||||||
|
global pytest_files_made_cache_mapping
|
||||||
|
pytest_files_made_cache_mapping[debugtalk_new_path] = ""
|
||||||
|
|
||||||
dot_csv_path = project_meta.dot_env_path
|
dot_csv_path = project_meta.dot_env_path
|
||||||
if dot_csv_path:
|
if dot_csv_path:
|
||||||
dot_csv_new_path = ensure_file_path_valid(dot_csv_path)
|
dot_csv_new_path = ensure_file_path_valid(dot_csv_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user