diff --git a/pyproject.toml b/pyproject.toml index 5d1eeba..2a8d787 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ branch = true omit = [ ".mypy_cache/**/*", ".pytest_cache/**/*", - "app/**/test.py", + "app/**/tests.py", "manage.py" ] source = ["app"] diff --git a/shell/test.sh b/shell/test.sh index 59a0d46..fd41fe0 100644 --- a/shell/test.sh +++ b/shell/test.sh @@ -20,8 +20,8 @@ echo "Sort pyproject.toml" poetry run toml-sort pyproject.toml --all --in-place echo "OK" -echo "Starting pytest with coverage" -poetry run coverage run -m pytest +echo "Starting Django test with coverage" +poetry run coverage run manage.py test poetry run coverage report -m poetry run coverage html