Skip to content

Commit

Permalink
tests: switch imports
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 1, 2024
1 parent cf626cd commit 9cfd58c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api_route_send_summary_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
from fastapi import status
from fastapi.testclient import TestClient

import src.app.email.sender as sender
from src.app.main import app
import src.app.email.sender as sender


def new_send_email(cls, *args, **kwargs):
def mock_send_email(cls, *args, **kwargs):
return None


Expand All @@ -28,7 +28,7 @@ def test_send_summary_endpoint_status_200(self):
}

# Act
with patch.object(sender, "send_email", new=new_send_email):
with patch.object(sender, "send_email", new=mock_send_email):
response = self.client.post(
"/send_summary",
data=form_data,
Expand Down

0 comments on commit 9cfd58c

Please sign in to comment.