From e2d669b8db4658796e6b499b94bb53f0677f9e70 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 19 Dec 2019 12:56:29 +0800 Subject: [PATCH] change: relocate report template html --- httprunner/report.py | 2 +- httprunner/report/__init__.py | 0 httprunner/{static => report}/report_template.html | 0 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 httprunner/report/__init__.py rename httprunner/{static => report}/report_template.html (100%) diff --git a/httprunner/report.py b/httprunner/report.py index 58989d57..eeaa2b2d 100644 --- a/httprunner/report.py +++ b/httprunner/report.py @@ -315,7 +315,7 @@ def gen_html_report(summary, report_template=None, report_dir=None, report_file= if not report_template: report_template = os.path.join( os.path.abspath(os.path.dirname(__file__)), - "static", + "report", "report_template.html" ) logger.log_debug("No html report template specified, use default.") diff --git a/httprunner/report/__init__.py b/httprunner/report/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/httprunner/static/report_template.html b/httprunner/report/report_template.html similarity index 100% rename from httprunner/static/report_template.html rename to httprunner/report/report_template.html