diff options
author | Pyry Heiskanen <pyry.heiskanen@gmail.com> | 2019-04-06 15:12:14 +0300 |
---|---|---|
committer | Pyry Heiskanen <pyry.heiskanen@gmail.com> | 2019-04-06 15:12:14 +0300 |
commit | ab9c02fd365dde7c4f26ff57898410504e03b895 (patch) | |
tree | d09136f905b1ac54d5660e290537a1cb81e35b53 /Makefile | |
parent | a3a95bc0c1a290ae944e01baceb6a2380e1693b6 (diff) | |
download | ickapi-ab9c02fd365dde7c4f26ff57898410504e03b895.tar.gz |
Implement apitest with aiohttp-pytestpyry/apitest
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -12,7 +12,12 @@ lint: pycodestyle ickapi pylint -j0 -d missing-docstring ickapi -test: lint +apitest: + gunicorn --config gunicorn.conf ickapi.main:app > /dev/null 2>&1 & + pytest --rootdir=apitest || true + pkill -F ickapi.pid + +test: lint apitest run: gunicorn --config gunicorn.conf --reload ickapi.main:app @@ -25,4 +30,4 @@ clean: reset: clean rm -rf env/ -.PHONY: all env lint test run clean reset +.PHONY: all env lint apitest test run clean reset |