From 38cbd4082e1f4cec40ef3ffe4cfc4a3b98c65501 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 24 Dec 2019 15:03:18 +0800 Subject: [PATCH] fix #797: locusts command error --- docs/CHANGELOG.md | 4 ++++ docs/Installation.md | 2 +- httprunner/ext/locusts/README.md | 2 +- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 47e71db7..ebfe8ca4 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,6 +6,10 @@ - feat: report user id to sentry +**Fixed** + +- fix #797: locusts command error + ## 2.4.6 (2019-12-23) **Added** diff --git a/docs/Installation.md b/docs/Installation.md index dce2f93b..dc3ed753 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -132,7 +132,7 @@ requests-toolbelt 0.9.1 A utility belt for advanced users of python-requests $ poetry run python -m httprunner -h # 调试运行 locusts -$ pipenv run python -m httprunner.plugins.locusts -h +$ pipenv run python -m httprunner.ext.locusts -h ``` ## Docker diff --git a/httprunner/ext/locusts/README.md b/httprunner/ext/locusts/README.md index 831e84d7..6b52620e 100644 --- a/httprunner/ext/locusts/README.md +++ b/httprunner/ext/locusts/README.md @@ -17,7 +17,7 @@ $ locusts -f xxx.yml --processes ``` ```shell script -$ python3 -m httprunner.plugins.locusts -h +$ python3 -m httprunner.ext.locusts -h Usage: locust [options] [LocustClass [LocustClass2 ... ]] diff --git a/pyproject.toml b/pyproject.toml index 71852f9b..363bf55f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ coverage = "^4.5.4" hrun = "httprunner.cli:main" ate = "httprunner.cli:main" httprunner = "httprunner.cli:main" -locusts = "httprunner.plugins.locusts.cli:main" +locusts = "httprunner.ext.locusts.cli:main" [build-system] requires = ["poetry>=1.0.0"]