File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/toolbox-core/tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- from unittest .mock import patch , AsyncMock , MagicMock
15
+ from unittest .mock import AsyncMock , MagicMock , patch
16
16
17
- import pytest
18
17
import google .auth .exceptions
18
+ import pytest
19
19
20
20
from toolbox_core import auth_methods
21
21
@@ -120,6 +120,7 @@ async def test_aget_google_id_token_refresh_error(
120
120
121
121
# --- Synchronous Tests ---
122
122
123
+
123
124
@patch ("toolbox_core.auth_methods.Request" )
124
125
@patch ("toolbox_core.auth_methods.AuthorizedSession" )
125
126
@patch ("toolbox_core.auth_methods.google.auth.default" )
@@ -198,4 +199,4 @@ def test_get_google_id_token_refresh_error(
198
199
mock_google_auth_default .assert_called_once_with ()
199
200
mock_authorized_session_class .assert_called_once_with (mock_creds_instance )
200
201
mock_request_class .assert_called_once_with (mock_session_instance )
201
- mock_creds_instance .refresh .assert_called_once_with (mock_request_instance )
202
+ mock_creds_instance .refresh .assert_called_once_with (mock_request_instance )
You can’t perform that action at this time.
0 commit comments