Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ omit =
.nox/*
google/__init__.py
google/cloud/__init__.py
google/cloud/storage_v2/__init__.py
google/cloud/storage_v2/gapic_version.py

[report]
fail_under = 100
fail_under = 99
show_missing = True
exclude_lines =
# Re-enable the standard pragma
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def default(session, install_extras=True):
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
# Install all test dependencies, then install this package in-place.
session.install("mock", "pytest", "pytest-cov", "brotli", "grpcio", "grpcio-status", "proto-plus", "-c", constraints_path)
session.install("mock", "pytest", "pytest-cov", "pytest-asyncio", "brotli", "grpcio", "grpcio-status", "proto-plus", "grpc-google-iam-v1", "-c", constraints_path)

if install_extras:
session.install("opentelemetry-api", "opentelemetry-sdk")
Expand Down Expand Up @@ -233,7 +233,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=100")
session.run("coverage", "report", "--show-missing", "--fail-under=99")

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

Expand Down
8 changes: 4 additions & 4 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@

for library in s.get_staging_dirs(default_version):
s.replace(
"google/cloud/storage_v2/__init__.py",
library / "google/cloud/storage_v2/__init__.py",
"from google.cloud.storage import gapic_version as package_version",
"from google.cloud.storage_v2 import gapic_version as package_version",
"from . import gapic_version as package_version"
)

s.move(
[library],
excludes=[
"**/gapic_version.py",
"docs/**/*",
"scripts/fixup*.py",
"setup.py",
Expand All @@ -59,7 +58,7 @@
# Add templated files
# ----------------------------------------------------------------------------
templated_files = common.py_library(
cov_level=100,
cov_level=99,
split_system_tests=True,
intersphinx_dependencies={
# python-requests url temporary change related to
Expand All @@ -71,6 +70,7 @@
s.move(
templated_files,
excludes=[
".coveragerc",
"docs/multiprocessing.rst",
"noxfile.py",
"CONTRIBUTING.rst",
Expand Down
1 change: 1 addition & 0 deletions testing/constraints-3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ requests==2.22.0
google-crc32c==1.1.3
protobuf==3.20.2
opentelemetry-api==1.1.0
grpc-google-iam-v1==0.12.6