From 3eaf89c7f2a590cbaa9bcbeda20e5f97b3471d63 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 22 Jan 2022 10:25:24 -0500 Subject: [PATCH] chore(python): set coverage level to 100% (#221) * chore(python): use cov_level in unittest gh action Source-Link: https://github.com/googleapis/synthtool/commit/e5aaa84b1dda1829c54d4696827817f133ed9780 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:d22cd2ddce65fdac6986f115563faf2fc81482b09dfbea83ac2808c92ecfdff0 * set coverage to 100% Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- packages/google-cloud-build/.github/.OwlBot.lock.yaml | 2 +- packages/google-cloud-build/noxfile.py | 2 +- packages/google-cloud-build/owlbot.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-build/.github/.OwlBot.lock.yaml b/packages/google-cloud-build/.github/.OwlBot.lock.yaml index 8cb43804d999..39ad3cecd516 100644 --- a/packages/google-cloud-build/.github/.OwlBot.lock.yaml +++ b/packages/google-cloud-build/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:ed1f9983d5a935a89fe8085e8bb97d94e41015252c5b6c9771257cf8624367e6 + digest: sha256:d22cd2ddce65fdac6986f115563faf2fc81482b09dfbea83ac2808c92ecfdff0 diff --git a/packages/google-cloud-build/noxfile.py b/packages/google-cloud-build/noxfile.py index de41c6bf9af5..2a2001c49998 100644 --- a/packages/google-cloud-build/noxfile.py +++ b/packages/google-cloud-build/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=99") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-cloud-build/owlbot.py b/packages/google-cloud-build/owlbot.py index f3ca04ae4d8d..8a14a8efefe6 100644 --- a/packages/google-cloud-build/owlbot.py +++ b/packages/google-cloud-build/owlbot.py @@ -38,7 +38,7 @@ templated_files = common.py_library( samples=False, # set to True only if there are samples microgenerator=True, - cov_level=99, + cov_level=100, ) s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file