From 6471b006cb9f1463bd48d5d585ad50479ac8f3cb Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sat, 6 Jun 2020 10:05:57 +0800 Subject: [PATCH] change: format copied debugtalk.py --- examples/postman_echo/debugtalk.py | 13 +++++++++++++ httprunner/make.py | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 examples/postman_echo/debugtalk.py diff --git a/examples/postman_echo/debugtalk.py b/examples/postman_echo/debugtalk.py new file mode 100644 index 00000000..af8b22eb --- /dev/null +++ b/examples/postman_echo/debugtalk.py @@ -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"} diff --git a/httprunner/make.py b/httprunner/make.py index 82faf410..83d5eef8 100644 --- a/httprunner/make.py +++ b/httprunner/make.py @@ -112,6 +112,9 @@ def __ensure_project_meta_files(tests_path: Text) -> NoReturn: logger.info(f"copy debugtalk.py to {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 if dot_csv_path: dot_csv_new_path = ensure_file_path_valid(dot_csv_path)