Skip to content

Commit c94dffb

Browse files
author
Ioannis Kakavas
committed
update test case
1 parent b2502a4 commit c94dffb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/satosa/micro_services/test_account_linking.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@ def test_account_linking_failed(self, account_linking_config, internal_response,
102102
body=ticket,
103103
content_type="text/html"
104104
)
105-
105+
issuer_user_id = internal_response.user_id
106106
result = self.account_linking.process(context, internal_response)
107107
assert isinstance(result, Redirect)
108108
assert result.message.startswith(account_linking_config["redirect_url"])
109109

110110
# account linking endpoint still does not return an id
111-
with pytest.raises(SATOSAAuthenticationError):
112-
self.account_linking._handle_al_response(context)
111+
internal_response = self.account_linking._handle_al_response(context)
112+
#Verify that we kept the user_id the issuer sent us
113+
assert internal_response.user_id == issuer_user_id
113114

114115
@responses.activate
115116
def test_manage_al_handle_failed_connection(self, account_linking_config, internal_response, context):

0 commit comments

Comments
 (0)