@@ -2557,7 +2557,7 @@ def test_email(admin: KeycloakAdmin, user: str) -> None:
25572557 # Emails will fail as we don't have SMTP test setup
25582558 with pytest .raises (KeycloakPutError ) as err :
25592559 admin .send_update_account (user_id = user , payload = [])
2560- assert err .match ('500: b\' {"errorMessage":"Failed to send execute actions email: .*' ), err
2560+ assert err .match ('500: b\' {"errorMessage":"Failed to send execute actions email.*' ), err
25612561
25622562 admin .update_user (user_id = user , payload = {"enabled" : True })
25632563 with pytest .raises (KeycloakPutError ) as err :
@@ -2694,7 +2694,7 @@ def test_auth_flows(admin: KeycloakAdmin, realm: str) -> None:
26942694 del flow ["id" ]
26952695 flow ["description" ] = "test description"
26962696 res = admin .update_authentication_flow (flow_id = browser_flow_id , payload = flow )
2697- assert res == {}
2697+ assert isinstance ( res , dict )
26982698 res = admin .get_authentication_flow_for_id (flow_id = browser_flow_id )
26992699 assert res ["description" ] == "test description"
27002700
@@ -4714,7 +4714,7 @@ async def test_a_groups(admin: KeycloakAdmin, user: str) -> None:
47144714
47154715 with pytest .raises (KeycloakGetError ) as err :
47164716 await admin .a_get_group_by_path (path = "/main-group/subgroup-2/subsubgroup-1/test" )
4717- assert err .match ('404: b\' {"error":"Group path does not exist"} \' ' )
4717+ assert err .match ('404: b\' {"error":"Group path does not exist.* \' ' )
47184718
47194719 res = await admin .a_get_group_by_path (path = "/main-group/subgroup-2/subsubgroup-1" )
47204720 assert res is not None , res
@@ -6333,7 +6333,7 @@ async def test_a_email(admin: KeycloakAdmin, user: str) -> None:
63336333 # Emails will fail as we don't have SMTP test setup
63346334 with pytest .raises (KeycloakPutError ) as err :
63356335 await admin .a_send_update_account (user_id = user , payload = [])
6336- assert err .match ('500: b\' {"errorMessage":"Failed to send execute actions email: .*' ), err
6336+ assert err .match ('500: b\' {"errorMessage":"Failed to send execute actions email.*' ), err
63376337
63386338 admin .update_user (user_id = user , payload = {"enabled" : True })
63396339 with pytest .raises (KeycloakPutError ) as err :
@@ -6538,7 +6538,7 @@ async def test_a_auth_flows(admin: KeycloakAdmin, realm: str) -> None:
65386538 del flow ["id" ]
65396539 flow ["description" ] = "test description"
65406540 res = await admin .a_update_authentication_flow (flow_id = browser_flow_id , payload = flow )
6541- assert res == {}
6541+ assert isinstance ( res , dict )
65426542 res = await admin .a_get_authentication_flow_for_id (flow_id = browser_flow_id )
65436543 assert res ["description" ] == "test description"
65446544
0 commit comments