Skip to content

Commit

Permalink
⚡ Update(tests) test_email_notifier type annotation
Browse files Browse the repository at this point in the history
Updated return type (tuple)
  • Loading branch information
MEHRSHAD-MIRSHEKARY committed Aug 29, 2024
1 parent 3b6ffdc commit c164e33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/utils/test_email_notifier.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys
import threading
from smtplib import SMTPException
from typing import Tuple
from unittest.mock import ANY, MagicMock

import pytest
Expand All @@ -21,7 +22,7 @@ def test_send_email_async_success(
self,
mock_smtp: MagicMock,
email_mock_settings: MagicMock,
notifier_mock_logger: tuple[MagicMock, MagicMock],
notifier_mock_logger: Tuple[MagicMock, MagicMock],
) -> None:
"""
Test that the send_email_async function successfully sends an email.
Expand Down Expand Up @@ -91,7 +92,7 @@ def test_send_email_async_failure(
self,
mock_smtp: MagicMock,
email_mock_settings: MagicMock,
notifier_mock_logger: tuple[MagicMock, MagicMock],
notifier_mock_logger: Tuple[MagicMock, MagicMock],
) -> None:
"""
Test that the send_email_async function handles SMTP failures.
Expand Down

0 comments on commit c164e33

Please sign in to comment.