mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
relocate locust template file
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
__version__ = '0.9.5'
|
__version__ = '0.9.5a'
|
||||||
|
|
||||||
from httprunner.task import HttpRunner
|
from httprunner.task import HttpRunner
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ def gen_locustfile(testcase_file_path):
|
|||||||
locustfile_path = 'locustfile.py'
|
locustfile_path = 'locustfile.py'
|
||||||
template_path = os.path.join(
|
template_path = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
'locustfile_template'
|
"templates",
|
||||||
|
"locustfile_template"
|
||||||
)
|
)
|
||||||
testset = load_test_file(testcase_file_path)
|
testset = load_test_file(testcase_file_path)
|
||||||
host = testset.get("config", {}).get("request", {}).get("base_url", "")
|
host = testset.get("config", {}).get("request", {}).get("base_url", "")
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ setup(
|
|||||||
license='MIT',
|
license='MIT',
|
||||||
packages=find_packages(exclude=["examples", "tests", "tests.*"]),
|
packages=find_packages(exclude=["examples", "tests", "tests.*"]),
|
||||||
package_data={
|
package_data={
|
||||||
'httprunner': ['locustfile_template', "templates/default_report_template.html"],
|
'httprunner': ["templates/*"],
|
||||||
},
|
},
|
||||||
keywords='api test',
|
keywords='api test',
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
|
|||||||
Reference in New Issue
Block a user