From f9671ccbd8a0de70930d2bee788aaf65998bdcd4 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:13:03 -0700 Subject: [PATCH] Fix some test comments --- src/paperless_mail/tests/test_mail_oauth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/paperless_mail/tests/test_mail_oauth.py b/src/paperless_mail/tests/test_mail_oauth.py index e269b74ac..fd3b7627c 100644 --- a/src/paperless_mail/tests/test_mail_oauth.py +++ b/src/paperless_mail/tests/test_mail_oauth.py @@ -91,8 +91,10 @@ class TestMailOAuth( - Mocked settings for Gmail and Outlook OAuth client IDs and secrets WHEN: - OAuth callback is called with a code and scope + - OAuth callback is called with a code and no scope THEN: - Gmail mail account is created + - Outlook mail account is created """ mock_get_gmail_access_token.return_value = { @@ -132,7 +134,7 @@ class TestMailOAuth( WHEN: - OAuth callback is called without a code THEN: - - Error is logged + - 400 bad request returned, no mail accounts are created """ response = self.client.get( @@ -152,7 +154,7 @@ class TestMailOAuth( GIVEN: - Mocked settings for Gmail and Outlook OAuth client IDs and secrets WHEN: - - OAuth callback is called with an error + - OAuth callback is called and get access token returns an error THEN: - No mail account is created - Error is logged