fix tests with updated coverage

This commit is contained in:
Brad Warren 2021-04-02 17:19:24 -07:00
parent e060258869
commit 5892a9c33b
2 changed files with 2 additions and 7 deletions

1
.gitignore vendored
View file

@ -15,6 +15,7 @@ poetry.lock
# coverage
.coverage
.coverage.*
/htmlcov/
/.vagrant

View file

@ -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)