File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
services/web/server/tests/unit/with_dbs/03/login Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ def confirmation_service(
9797 confirmation_repository : ConfirmationRepository , login_options : LoginOptions
9898) -> ConfirmationService :
9999 """Confirmation service instance"""
100- from simcore_service_webserver .login ._confirmation_service import (
101- ConfirmationService ,
102- )
103-
104100 return ConfirmationService (confirmation_repository , login_options )
105101
106102
Original file line number Diff line number Diff line change 11from datetime import timedelta
22
3+ from aiohttp import web
34from aiohttp .test_utils import make_mocked_request
4- from aiohttp .web import Application , Response
55from pytest_simcore .helpers .webserver_users import UserInfoDict
66from simcore_service_webserver .login import _confirmation_web
77from simcore_service_webserver .login ._confirmation_service import ConfirmationService
@@ -35,10 +35,11 @@ async def test_confirmation_token_workflow(
3535 assert validated_confirmation .action == action
3636
3737 # Step 4: Create confirmation link
38- app = Application ()
38+ app = web . Application ()
3939
40- async def mock_handler (request ):
41- return Response ()
40+ async def mock_handler (request : web .Request ):
41+ assert request .match_info ["code" ] == confirmation .code
42+ return web .Response ()
4243
4344 app .router .add_get (
4445 "/auth/confirmation/{code}" , mock_handler , name = "auth_confirmation"
You can’t perform that action at this time.
0 commit comments