Skip to content

Commit af8b34a

Browse files
committed
Fix stub on ApplicationDefaultCredentials in unit tests.
1 parent 7588c7a commit af8b34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/oauth2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_get_application_default_credentials(self):
178178
mock_credentials = mock.Mock()
179179
mock_request = mock.Mock()
180180
with mock.patch.object(
181-
oauth2, "ApplicationDefaultCredentials", return_value=mock_credentials
181+
oauth2, "ApplicationDefaultCredentials", return_value=(mock_credentials, None)
182182
) as mock_initializer, mock.patch.object(
183183
oauth2, "Request", return_value=mock_request
184184
) as mock_request_class:

0 commit comments

Comments
 (0)