aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>2020-09-03 11:15:13 -0700
committerGitHub <noreply@github.com>2020-09-03 11:15:13 -0700
commit8f8ee7879e4f834f3c676e535ffc41b5b9b2de62 (patch)
tree105dbd92560cb4f2301ca1d4cdec324ba65299b6 /tests
parent622931721ce34839d630aa1e974c7d8f47b5d25e (diff)
downloadpython-api-core-8f8ee7879e4f834f3c676e535ffc41b5b9b2de62.tar.gz
fix: only add quota project id if supported (#75)
Diffstat (limited to 'tests')
-rw-r--r--tests/asyncio/test_grpc_helpers_async.py2
-rw-r--r--tests/unit/test_grpc_helpers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/asyncio/test_grpc_helpers_async.py b/tests/asyncio/test_grpc_helpers_async.py
index 924a74c..766e11a 100644
--- a/tests/asyncio/test_grpc_helpers_async.py
+++ b/tests/asyncio/test_grpc_helpers_async.py
@@ -369,7 +369,7 @@ def test_create_channel_explicit_with_quota_project(grpc_secure_channel, composi
target = "example.com:443"
composite_creds = composite_creds_call.return_value
- credentials = mock.create_autospec(google.auth.credentials.Credentials, instance=True)
+ credentials = mock.create_autospec(google.auth.credentials.CredentialsWithQuotaProject, instance=True)
channel = grpc_helpers_async.create_channel(
target, credentials=credentials, quota_project_id="project-foo"
diff --git a/tests/unit/test_grpc_helpers.py b/tests/unit/test_grpc_helpers.py
index f8fed40..d6ec60a 100644
--- a/tests/unit/test_grpc_helpers.py
+++ b/tests/unit/test_grpc_helpers.py
@@ -341,7 +341,7 @@ def test_create_channel_explicit_with_quota_project(grpc_secure_channel, composi
target = "example.com:443"
composite_creds = composite_creds_call.return_value
- credentials = mock.create_autospec(google.auth.credentials.Credentials, instance=True)
+ credentials = mock.create_autospec(google.auth.credentials.CredentialsWithQuotaProject, instance=True)
channel = grpc_helpers.create_channel(
target,