File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/simcore_service_webserver/users
tests/unit/with_dbs/03/invitations Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 77from models_library .emails import LowerCaseEmailStr
88from models_library .products import ProductName
99from models_library .users import UserID
10+ from notifications_library ._email import create_email_session
1011from pydantic import HttpUrl
1112from settings_library .email import SMTPSettings
1213from simcore_service_webserver .products ._service import get_product
@@ -375,7 +376,7 @@ async def send_approval_email_to_user(
375376 first_name : str ,
376377 last_name : str ,
377378) -> None :
378- from notifications_library ._email import compose_email , create_email_session
379+ from notifications_library ._email import compose_email
379380 from notifications_library ._email_render import (
380381 get_support_address ,
381382 get_user_address ,
@@ -432,7 +433,7 @@ async def send_rejection_email_to_user(
432433 last_name : str ,
433434 host : str ,
434435) -> None :
435- from notifications_library ._email import compose_email , create_email_session
436+ from notifications_library ._email import compose_email
436437 from notifications_library ._email_render import (
437438 get_support_address ,
438439 get_user_address ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ async def mock_send_message(msg):
7878 mock_session .__aexit__ = AsyncMock (return_value = None )
7979
8080 # Use mocker to patch the create_email_session function
81- mocker .patch (
81+ mocker .patch . object (
8282 "simcore_service_webserver.users._accounts_service.create_email_session" ,
8383 return_value = mock_session ,
8484 )
You can’t perform that action at this time.
0 commit comments