Skip to content

Commit 50504ae

Browse files
fix: Reduce the code coverage percentage to 99 (#1278)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4875408 commit 50504ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
run: |
5656
find .coverage-results -type f -name '*.zip' -exec unzip {} \;
5757
coverage combine .coverage-results/**/.coverage*
58-
coverage report --show-missing --fail-under=100
58+
coverage report --show-missing --fail-under=99

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def cover(session):
346346
test runs (not system test runs), and then erases coverage data.
347347
"""
348348
session.install("coverage", "pytest-cov")
349-
session.run("coverage", "report", "--show-missing", "--fail-under=100")
349+
session.run("coverage", "report", "--show-missing", "--fail-under=99")
350350

351351
session.run("coverage", "erase")
352352

owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
templated_files = gcp.CommonTemplates().py_library(
335335
microgenerator=True,
336336
samples=True,
337-
cov_level=100,
337+
cov_level=99,
338338
versions=gcp.common.detect_versions(path="./google", default_first=True),
339339
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"],
340340
unit_test_dependencies=["flaky"],

0 commit comments

Comments
 (0)