fix: strip trailing `_` from field mask paths by busunkim96 · Pull Request #228 · googleapis/python-api-core · GitHub
Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
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
7 changes: 7 additions & 0 deletions google/api_core/protobuf_helpers.py
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ def default(session):
]
pytest_args.extend(session.posargs)

# Inject AsyncIO content, if version >= 3.6.
# Inject AsyncIO content and proto-plus, if version >= 3.6.
# proto-plus is needed for a field mask test in test_protobuf_helpers.py
if _greater_or_equal_than_36(session.python):
session.install("asyncmock", "pytest-asyncio")
session.install("asyncmock", "pytest-asyncio", "proto-plus")

pytest_args.append("--cov=tests.asyncio")
pytest_args.append(os.path.join("tests", "asyncio"))
Expand Down
44 changes: 44 additions & 0 deletions tests/unit/test_protobuf_helpers.py