mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use AsyncMock with python 3.8 instead of asynctest
This commit is contained in:
parent
6f56f24296
commit
8e5cb067df
8 changed files with 123 additions and 105 deletions
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
||||
# =================================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue