Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed May 17, 2024
1 parent a24e8d6 commit c19dab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/asyncio/gapic/test_method_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def to_grpc_metadata(self):
# Check that the custom client info was specified in the metadata.
metadata = method.call_args[1]["metadata"]
metadata_keys = {key for key, _ in metadata}
assert metadata_keys == {"x-goog-api-client", "key1"}
assert metadata_keys == {"a", "x-goog-api-client", "key1"}


@pytest.mark.asyncio
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/gapic/test_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def to_grpc_metadata(self):
# Check that the custom client info was specified in the metadata.
metadata = method.call_args[1]["metadata"]
metadata_keys = {key for key, _ in metadata}
assert metadata_keys == {"x-goog-api-client", "key1"}
assert metadata_keys == {"a", "x-goog-api-client", "key1"}


def test_invoke_wrapped_method_with_metadata_as_none():
Expand Down

0 comments on commit c19dab0

Please sign in to comment.