Fix some test comments

This commit is contained in:
shamoon 2024-10-07 11:13:03 -07:00
parent 0e5c8a39fa
commit f9671ccbd8

View File

@ -91,8 +91,10 @@ class TestMailOAuth(
- Mocked settings for Gmail and Outlook OAuth client IDs and secrets - Mocked settings for Gmail and Outlook OAuth client IDs and secrets
WHEN: WHEN:
- OAuth callback is called with a code and scope - OAuth callback is called with a code and scope
- OAuth callback is called with a code and no scope
THEN: THEN:
- Gmail mail account is created - Gmail mail account is created
- Outlook mail account is created
""" """
mock_get_gmail_access_token.return_value = { mock_get_gmail_access_token.return_value = {
@ -132,7 +134,7 @@ class TestMailOAuth(
WHEN: WHEN:
- OAuth callback is called without a code - OAuth callback is called without a code
THEN: THEN:
- Error is logged - 400 bad request returned, no mail accounts are created
""" """
response = self.client.get( response = self.client.get(
@ -152,7 +154,7 @@ class TestMailOAuth(
GIVEN: GIVEN:
- Mocked settings for Gmail and Outlook OAuth client IDs and secrets - Mocked settings for Gmail and Outlook OAuth client IDs and secrets
WHEN: WHEN:
- OAuth callback is called with an error - OAuth callback is called and get access token returns an error
THEN: THEN:
- No mail account is created - No mail account is created
- Error is logged - Error is logged