Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 19e3103

Browse filesBrowse files
chore: use gapic-generator-python 1.0.0 (#194)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 451250442 Source-Link: googleapis/googleapis@cca5e81 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0b219da161a8bdcc3c6f7b2efcd82105182a30ca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIyMTlkYTE2MWE4YmRjYzNjNmY3YjJlZmNkODIxMDUxODJhMzBjYSJ9
1 parent 7b2b0d7 commit 19e3103
Copy full SHA for 19e3103

File tree

Expand file treeCollapse file tree

2 files changed

+18
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+18
-4
lines changed

‎tests/unit/gapic/redis_v1/test_cloud_redis.py

Copy file name to clipboardExpand all lines: tests/unit/gapic/redis_v1/test_cloud_redis.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import math
1716
import os
1817

18+
# try/except added for compatibility with python < 3.8
19+
try:
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
22+
except ImportError:
23+
import mock
24+
25+
import math
26+
1927
from google.api_core import (
2028
future,
2129
gapic_v1,
@@ -40,7 +48,6 @@
4048
from google.type import timeofday_pb2 # type: ignore
4149
import grpc
4250
from grpc.experimental import aio
43-
import mock
4451
from proto.marshal.rules.dates import DurationRule, TimestampRule
4552
import pytest
4653

‎tests/unit/gapic/redis_v1beta1/test_cloud_redis.py

Copy file name to clipboardExpand all lines: tests/unit/gapic/redis_v1beta1/test_cloud_redis.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import math
1716
import os
1817

18+
# try/except added for compatibility with python < 3.8
19+
try:
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
22+
except ImportError:
23+
import mock
24+
25+
import math
26+
1927
from google.api_core import (
2028
future,
2129
gapic_v1,
@@ -41,7 +49,6 @@
4149
from google.type import timeofday_pb2 # type: ignore
4250
import grpc
4351
from grpc.experimental import aio
44-
import mock
4552
from proto.marshal.rules.dates import DurationRule, TimestampRule
4653
import pytest
4754

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.