test: always use MOCK_CREDENTIALS in tests (#1321)
diff --git a/tests/test_discovery.py b/tests/test_discovery.py
index 43ab2c7..2682055 100644
--- a/tests/test_discovery.py
+++ b/tests/test_discovery.py
@@ -632,7 +632,9 @@
api_endpoint = "https://foo.googleapis.com/"
mapping_object = defaultdict(str)
mapping_object["api_endpoint"] = api_endpoint
- plus = build_from_document(discovery, client_options=mapping_object)
+ plus = build_from_document(
+ discovery, client_options=mapping_object, credentials=self.MOCK_CREDENTIALS
+ )
self.assertEqual(plus._baseUrl, api_endpoint)