Skip to content

Commit

Permalink
Exclude logging lines from coverage (XKNX#823)
Browse files Browse the repository at this point in the history
* Exclude logging lines from coverage

* Ignore __repr__
  • Loading branch information
marvin-w authored Dec 17, 2021
1 parent cb608c1 commit 222df9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ exclude_lines =

# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError

# Don't complain about logs
logger.debug
logger.info
logger.warning
logger.error

# Don't complain about missing debug-only code:
def __repr__

0 comments on commit 222df9e

Please sign in to comment.