Skip to content
This repository was archived by the owner on Aug 25, 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
4 changes: 2 additions & 2 deletions gapic/templates/setup.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ setuptools.setup(
platforms='Posix; MacOS X; Windows',
include_package_data=True,
install_requires=(
'google-api-core >= 1.3.0, < 2.0.0dev',
'googleapis-common-protos >= 1.6.0b7',
'google-api-core >= 1.8.0, < 2.0.0dev',
'googleapis-common-protos >= 1.5.8',
'grpcio >= 1.10.0',
'proto-plus >= 0.3.0',
),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
include_package_data=True,
install_requires=(
'click >= 6.7',
'googleapis-common-protos >= 1.6.0b7',
'googleapis-common-protos >= 1.6.0b8',
'jinja2 >= 2.10',
'protobuf >= 3.5.1',
'pypandoc >= 1.4',
Expand Down
29 changes: 29 additions & 0 deletions tests/system/test_grpc_lro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from datetime import datetime, timedelta, timezone

from google import showcase_v1alpha3


def test_lro(echo):
wait_request = {
'end_time': datetime.now(tz=timezone.utc) + timedelta(seconds=1),
'success': {'content': 'The hail in Wales falls mainly '
'on the snails...eventually.'},
}
future = echo.wait(wait_request)
response = future.result()
assert isinstance(response, showcase_v1alpha3.WaitResponse)
assert response.content.endswith('the snails...eventually.')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope it will not hide any Really Serious Error in the beginning of the string :)