@@ -374,7 +374,7 @@ async def test_sign_in_finish(self):
374374 timeout = DEFAULT_TIMEOUT_SECONDS ,
375375 )
376376 self .assertIsNotNone (
377- await futu_await (webauthn .sign_up_finish ("t01" , "response01" ))
377+ await futu_await (webauthn .sign_in_finish ("t01" , "response01" ))
378378 )
379379
380380 async def test_sign_up_or_in_start (self ):
@@ -542,9 +542,7 @@ async def test_update_finish(self):
542542 with mock_http_call (self .async_test , "post" ) as mock_post :
543543 mock_post .return_value .is_success = False
544544 with self .assertRaises (AuthException ):
545- await futu_await (
546- webauthn .update_finish ("t01" , "response01" )
547- )
545+ await futu_await (webauthn .update_finish ("t01" , "response01" ))
548546
549547 # Test success flow
550548 with mock_http_call (self .async_test , "post" ) as mock_post :
@@ -557,7 +555,7 @@ async def test_update_finish(self):
557555 my_mock_response .json .return_value = data
558556 mock_post .return_value = my_mock_response
559557 expected_uri = f"{ common .DEFAULT_BASE_URL } { EndpointsV1 .update_auth_webauthn_finish_path } "
560- await futu_await (webauthn .update_finish ("t01" , "response01" ))
558+ res = await futu_await (webauthn .update_finish ("t01" , "response01" ))
561559 mock_post .assert_called_with (
562560 expected_uri ,
563561 headers = {
@@ -571,9 +569,7 @@ async def test_update_finish(self):
571569 verify = SSLMatcher (),
572570 timeout = DEFAULT_TIMEOUT_SECONDS ,
573571 )
574- self .assertIsNotNone (
575- await futu_await (webauthn .sign_up_finish ("t01" , "response01" ))
576- )
572+ self .assertIsNone (res )
577573
578574
579575if __name__ == "__main__" :
0 commit comments