Skip to content

Commit 9173e8b

Browse files
author
Peng Ren
committed
Improve test coverage rate
1 parent 789c322 commit 9173e8b

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.coveragerc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[run]
2+
source = pymongosql
3+
4+
[report]
5+
exclude_lines =
6+
pragma: no cover
7+
def __repr__
8+
if self.debug:
9+
if settings.DEBUG
10+
raise AssertionError
11+
raise NotImplementedError
12+
if 0:
13+
if __name__ == .__main__.:
14+
class .*\bProtocol\):
15+
@(abc\.)?abstractmethod
16+
17+
omit =
18+
*/tests/*
19+
*/test_*
20+
pymongosql/sql/partiql/*

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
8383
- name: Run tests with coverage
8484
run: |
85-
python -m pytest tests/ --cov=pymongosql --cov-report=term-missing --cov-report=xml
85+
python -m pytest tests/ --cov=pymongosql --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc
8686
8787
- name: Upload coverage reports
8888
uses: codecov/codecov-action@v4

pymongosql/sql/partiql/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# -*- coding: utf-8 -*-

0 commit comments

Comments
 (0)