Use AsyncMock with python 3.8 instead of asynctest

This commit is contained in:
Alex Root Junior 2020-01-11 21:15:46 +02:00
parent 6f56f24296
commit 8e5cb067df
8 changed files with 123 additions and 105 deletions

View file

@ -101,12 +101,12 @@ lint: isort black flake8 mypy
.PHONY: test
test:
$(py) pytest --cov=aiogram --cov-config .coveragerc -p no:warnings tests/
$(py) pytest --cov=aiogram --cov-config .coveragerc tests/
.PHONY: test-coverage
test-coverage:
mkdir -p $(reports_dir)/tests/
$(py) pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html -p no:warnings tests/
$(py) pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/
$(py) coverage html -d $(reports_dir)/coverage
# =================================================================================================