Skip to content

Commit

Permalink
Fix double output in the coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaYefymenko committed Apr 22, 2024
1 parent 54e75da commit 4a53a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def coverage_context():
with cov.collect():
yield
cov.save()
print(f'Coverage is {cov.report()}%')
covered = cov.report()
print(f'Coverage is {covered}%')

cov.html_report()
cov.xml_report()

covered = cov.report()
fail_under = cov.config.get_option('report:fail_under')
if covered < fail_under:
raise SystemExit(2)
Expand Down

0 comments on commit 4a53a65

Please sign in to comment.