@@ -130,7 +130,10 @@ def test_delete_identity(
130
130
def test_list_identities (
131
131
kratos_api : KratosAPI , kratos_identity_json : Dict , mocked_kratos_process : MagicMock
132
132
) -> None :
133
- mocked_kratos_process .wait_output .return_value = (json .dumps ([kratos_identity_json ]), None )
133
+ mocked_kratos_process .wait_output .return_value = (
134
+ json .dumps ({"identities" : [kratos_identity_json ]}),
135
+ None ,
136
+ )
134
137
135
138
kratos_api .list_identities ()
136
139
@@ -148,7 +151,10 @@ def test_list_identities(
148
151
def test_get_identity_from_email (
149
152
kratos_api : KratosAPI , kratos_identity_json : Dict , mocked_kratos_process : MagicMock
150
153
) -> None :
151
- mocked_kratos_process .wait_output .return_value = (json .dumps ([kratos_identity_json ]), None )
154
+ mocked_kratos_process .wait_output .return_value = (
155
+ json .dumps ({"identities" : [kratos_identity_json ]}),
156
+ None ,
157
+ )
152
158
153
159
identity = kratos_api .get_identity_from_email (kratos_identity_json ["traits" ]["email" ])
154
160
@@ -167,7 +173,10 @@ def test_get_identity_from_email(
167
173
def test_get_identity_from_email_with_wrong_mail (
168
174
kratos_api : KratosAPI , kratos_identity_json : Dict , mocked_kratos_process : MagicMock
169
175
) -> None :
170
- mocked_kratos_process .wait_output .return_value = (json .dumps ([kratos_identity_json ]), None )
176
+ mocked_kratos_process .wait_output .return_value = (
177
+ json .dumps ({"identities" : [kratos_identity_json ]}),
178
+ None ,
179
+ )
171
180
172
181
identity = kratos_api .get_identity_from_email ("mail" )
173
182
0 commit comments