mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
fix tests with updated coverage
This commit is contained in:
parent
e060258869
commit
5892a9c33b
2 changed files with 2 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -15,6 +15,7 @@ poetry.lock
|
|||
|
||||
# coverage
|
||||
.coverage
|
||||
.coverage.*
|
||||
/htmlcov/
|
||||
|
||||
/.vagrant
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ def cover(package):
|
|||
return
|
||||
|
||||
subprocess.check_call([sys.executable, '-m', 'pytest',
|
||||
'--cov', pkg_dir, '--cov-append', '--cov-report=', pkg_dir])
|
||||
'--cov', pkg_dir, '--cov-report=', pkg_dir])
|
||||
try:
|
||||
subprocess.check_call([
|
||||
sys.executable, '-m', 'coverage', 'report', '--fail-under',
|
||||
|
|
@ -74,12 +74,6 @@ those packages are moved to a separate repo."""
|
|||
|
||||
packages = args.packages or DEFAULT_PACKAGES
|
||||
|
||||
# --cov-append is on, make sure stats are correct
|
||||
try:
|
||||
os.remove('.coverage')
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
for package in packages:
|
||||
cover(package)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue