From 9d13cddb39658643849fe7b615a00a1920968129 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Wed, 14 Feb 2018 00:08:42 +0800 Subject: [PATCH] rename main_ate to main_hrun --- docs/development.md | 4 ++-- httprunner/cli.py | 2 +- main-ate.py | 5 ----- main-hrun.py | 5 +++++ setup.py | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 main-ate.py create mode 100644 main-hrun.py diff --git a/docs/development.md b/docs/development.md index ac1800cc..303be9e9 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,9 +1,9 @@ ## Development -To develop or debug `HttpRunner`, you can install relevant requirements and use `main-ate.py` or `main-locust.py` as entrances. +To develop or debug `HttpRunner`, you can install relevant requirements and use `main-hrun.py` or `main-locust.py` as entrances. ```bash $ pip install -r requirements.txt -$ python main-ate -h +$ python main-hrun -h $ python main-locust -h ``` diff --git a/httprunner/cli.py b/httprunner/cli.py index ac3a8421..7ad76c86 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -13,7 +13,7 @@ from pyunitreport import __version__ as pyu_version from pyunitreport import HTMLTestRunner -def main_ate(): +def main_hrun(): """ API test: parse command line options and run commands. """ parser = argparse.ArgumentParser( diff --git a/main-ate.py b/main-ate.py deleted file mode 100644 index dbebf9df..00000000 --- a/main-ate.py +++ /dev/null @@ -1,5 +0,0 @@ -""" used for debugging -""" - -from httprunner.cli import main_ate -main_ate() diff --git a/main-hrun.py b/main-hrun.py new file mode 100644 index 00000000..2611ba9b --- /dev/null +++ b/main-hrun.py @@ -0,0 +1,5 @@ +""" used for debugging +""" + +from httprunner.cli import main_hrun +main_hrun() diff --git a/setup.py b/setup.py index 9bfc8268..df978756 100644 --- a/setup.py +++ b/setup.py @@ -33,9 +33,9 @@ setup( ], entry_points={ 'console_scripts': [ - 'ate=httprunner.cli:main_ate', - 'httprunner=httprunner.cli:main_ate', - 'hrun=httprunner.cli:main_ate', + 'ate=httprunner.cli:main_hrun', + 'httprunner=httprunner.cli:main_hrun', + 'hrun=httprunner.cli:main_hrun', 'locusts=httprunner.cli:main_locust' ] }