From 0f97c819d0224b53040794372ec1c5fcccf83d0c Mon Sep 17 00:00:00 2001 From: Clovis Kyndt Date: Sun, 17 Mar 2024 11:59:52 +0100 Subject: [PATCH] fix: pytest declare specific dir instead of mean directory --- .coveragerc | 35 ----------------------------------- scripts/tests.sh | 2 +- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 8dab3b2..0000000 --- a/.coveragerc +++ /dev/null @@ -1,35 +0,0 @@ -[run] -branch = 1 -cover_pylib = 0 -include=*mode/* -omit = tests.* - -[report] -omit = - */python?.?/* - */site-packages/* - */pypy/* - - # tested by functional tests - */mode/loop/* - - # not needed - */mode/types/* - */mode/utils/types/* - */mode/utils/mocks.py - - # been in celery since forever - */mode/utils/graphs/* -exclude_lines = - # Have to re-enable the standard pragma - if\ typing\.TYPE_CHECKING\: - - pragma: no cover - - if sys.platform == 'win32': - - \@abc\.abstractmethod - - \# Py3\.6 - - \@overload diff --git a/scripts/tests.sh b/scripts/tests.sh index 5adcdec..751fc77 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -3,4 +3,4 @@ set -e set -x -pytest tests --cov=mode +pytest tests/unit tests/functional --cov=mode