Fix compatibility with pydantic 1.5 (temporary)

This commit is contained in:
Alex Root Junior 2020-04-28 12:07:01 +03:00
parent 01c6303d67
commit e9fef19129
5 changed files with 117 additions and 77 deletions

View file

@ -28,6 +28,7 @@ help:
@echo "Tests:"
@echo " test: Run tests"
@echo " test-coverage: Run tests with HTML reporting (results + coverage)"
@echo " test-coverage-report: Open coverage report in default system web browser"
@echo ""
@echo "Documentation:"
@echo " docs: Build docs"
@ -109,6 +110,10 @@ test-coverage:
$(py) pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/
$(py) coverage html -d $(reports_dir)/coverage
.PHONY: test-coverage-report
test-coverage-report:
python -c "import webbrowser; webbrowser.open('file://$(shell pwd)/reports/coverage/index.html')"
# =================================================================================================
# Docs
# =================================================================================================
@ -125,7 +130,6 @@ docs-serve:
docs-copy-reports:
mv $(reports_dir)/* site/reports
# =================================================================================================
# Project
# =================================================================================================