diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 912aa9c2..770bcf05 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.9.5' +__version__ = '0.9.5a' from httprunner.task import HttpRunner diff --git a/httprunner/locusts.py b/httprunner/locusts.py index 66a16ce3..7702c6c6 100644 --- a/httprunner/locusts.py +++ b/httprunner/locusts.py @@ -36,7 +36,8 @@ def gen_locustfile(testcase_file_path): locustfile_path = 'locustfile.py' template_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), - 'locustfile_template' + "templates", + "locustfile_template" ) testset = load_test_file(testcase_file_path) host = testset.get("config", {}).get("request", {}).get("base_url", "") diff --git a/httprunner/locustfile_template b/httprunner/templates/locustfile_template similarity index 100% rename from httprunner/locustfile_template rename to httprunner/templates/locustfile_template diff --git a/setup.py b/setup.py index 0bb14e3e..109f7904 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( license='MIT', packages=find_packages(exclude=["examples", "tests", "tests.*"]), package_data={ - 'httprunner': ['locustfile_template', "templates/default_report_template.html"], + 'httprunner': ["templates/*"], }, keywords='api test', install_requires=install_requires,