From abc9097b9e2cf7dbaf9aa6633be3cb55523f31c7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 May 2022 18:04:14 +0000 Subject: [PATCH] chore: use gapic-generator-python 1.0.0 (#154) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 451250442 Source-Link: https://github.com/googleapis/googleapis/commit/cca5e8181f6442b134e8d4d206fbe9e0e74684ba Source-Link: https://github.com/googleapis/googleapis-gen/commit/0b219da161a8bdcc3c6f7b2efcd82105182a30ca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIyMTlkYTE2MWE4YmRjYzNjNmY3YjJlZmNkODIxMDUxODJhMzBjYSJ9 --- packages/google-cloud-org-policy/owlbot.py | 2 +- .../tests/unit/gapic/orgpolicy_v2/test_org_policy.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-org-policy/owlbot.py b/packages/google-cloud-org-policy/owlbot.py index 0d0ecb0dc453..49b514814f22 100644 --- a/packages/google-cloud-org-policy/owlbot.py +++ b/packages/google-cloud-org-policy/owlbot.py @@ -36,7 +36,7 @@ "google-cloud-org-policy" ) - s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"]) + s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst", "noxfile.py"]) s.remove_staging_dirs() diff --git a/packages/google-cloud-org-policy/tests/unit/gapic/orgpolicy_v2/test_org_policy.py b/packages/google-cloud-org-policy/tests/unit/gapic/orgpolicy_v2/test_org_policy.py index f130be64d1d5..4b0a04e0f602 100644 --- a/packages/google-cloud-org-policy/tests/unit/gapic/orgpolicy_v2/test_org_policy.py +++ b/packages/google-cloud-org-policy/tests/unit/gapic/orgpolicy_v2/test_org_policy.py @@ -14,7 +14,13 @@ # limitations under the License. # import os -import mock + +# try/except added for compatibility with python < 3.8 +try: + from unittest import mock + from unittest.mock import AsyncMock +except ImportError: + import mock import grpc from grpc.experimental import aio