From 26af8825e0e32f7f18806c6904caa13a486eff47 Mon Sep 17 00:00:00 2001 From: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 22:09:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- tests/oauth2/test_credentials.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/oauth2/test_credentials.py b/tests/oauth2/test_credentials.py index 6d72012cf..7d2a9b872 100644 --- a/tests/oauth2/test_credentials.py +++ b/tests/oauth2/test_credentials.py @@ -290,9 +290,7 @@ def test_refresh_with_refresh_token_and_refresh_handler( refresh_handler.assert_not_called() @mock.patch("google.auth._helpers.utcnow", return_value=datetime.datetime.min) - def test_refresh_with_refresh_handler_success_scopes( - self, unused_utcnow - ): + def test_refresh_with_refresh_handler_success_scopes(self, unused_utcnow): expected_expiry = datetime.datetime.min + datetime.timedelta(seconds=2800) refresh_handler = mock.Mock(return_value=("ACCESS_TOKEN", expected_expiry)) scopes = ["email", "profile"] @@ -320,9 +318,7 @@ def test_refresh_with_refresh_handler_success_scopes( refresh_handler.assert_called_with(request, scopes=scopes) @mock.patch("google.auth._helpers.utcnow", return_value=datetime.datetime.min) - def test_refresh_with_refresh_handler_success_default_scopes( - self, unused_utcnow - ): + def test_refresh_with_refresh_handler_success_default_scopes(self, unused_utcnow): expected_expiry = datetime.datetime.min + datetime.timedelta(seconds=2800) original_refresh_handler = mock.Mock( return_value=("UNUSED_TOKEN", expected_expiry)