From 4be419a92f17a24bb1cb4746e5ebf088e898fdff 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 09:43:21 -0500 Subject: [PATCH] chore(python): set code coverage to 100% (#174) * 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 level to 100% Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- packages/google-cloud-trace/.github/.OwlBot.lock.yaml | 3 +-- packages/google-cloud-trace/noxfile.py | 2 +- packages/google-cloud-trace/owlbot.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-trace/.github/.OwlBot.lock.yaml b/packages/google-cloud-trace/.github/.OwlBot.lock.yaml index b668c04d5d65..39ad3cecd516 100644 --- a/packages/google-cloud-trace/.github/.OwlBot.lock.yaml +++ b/packages/google-cloud-trace/.github/.OwlBot.lock.yaml @@ -13,5 +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-trace/noxfile.py b/packages/google-cloud-trace/noxfile.py index f041f1f5a4ae..2a2001c49998 100644 --- a/packages/google-cloud-trace/noxfile.py +++ b/packages/google-cloud-trace/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=98") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-cloud-trace/owlbot.py b/packages/google-cloud-trace/owlbot.py index bc056fc9831a..2aba19d2dcee 100644 --- a/packages/google-cloud-trace/owlbot.py +++ b/packages/google-cloud-trace/owlbot.py @@ -40,7 +40,7 @@ templated_files = common.py_library( samples=True, # set to True only if there are samples microgenerator=True, - cov_level=98, + cov_level=100, ) s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file