Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix tests
  • Loading branch information
parthea committed Mar 12, 2022
commit 69389810c3dcff20e9263db5654a7f8fd1a64fb4
6 changes: 3 additions & 3 deletions tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _constructor_test_helper(

self.assertIs(client._credentials, expected_creds)
if expected_scopes is not None:
creds.with_scopes.assert_called_once_with(expected_scopes)
creds.with_scopes.assert_called_once_with(expected_scopes, default_scopes=None)

self.assertEqual(client.project, self.PROJECT)
self.assertIs(client._client_info, expected_client_info)
Expand Down Expand Up @@ -252,7 +252,7 @@ def test_instance_admin_api(self, mock_em):
credentials=mock.ANY, client_info=client_info, client_options=client_options
)

credentials.with_scopes.assert_called_once_with(expected_scopes)
credentials.with_scopes.assert_called_once_with(expected_scopes, default_scopes=None)

@mock.patch("google.cloud.spanner_v1.client._get_spanner_emulator_host")
def test_instance_admin_api_emulator_env(self, mock_em):
Expand Down Expand Up @@ -350,7 +350,7 @@ def test_database_admin_api(self, mock_em):
credentials=mock.ANY, client_info=client_info, client_options=client_options
)

credentials.with_scopes.assert_called_once_with(expected_scopes)
credentials.with_scopes.assert_called_once_with(expected_scopes, default_scopes=None)

@mock.patch("google.cloud.spanner_v1.client._get_spanner_emulator_host")
def test_database_admin_api_emulator_env(self, mock_em):
Expand Down