@@ -203,27 +203,27 @@ def test_update_user_error(user_utils, requests_mock):
203203
204204def test_update_user_display_name (user_utils , requests_mock ):
205205 user_id = "user1"
206- patch = requests_mock .patch (
206+ patche = requests_mock .patch (
207207 f"{ MAS_API_URL } /v3/users/{ user_id } " ,
208208 request_headers = {"x-access-token" : TOKEN },
209209 json = {"id" : user_id },
210210 status_code = 200
211211 )
212212 user_utils .update_user_display_name (user_id , "display_name" )
213- assert patch .call_count == 1
213+ assert patche .call_count == 1
214214
215215
216216def test_update_user_display_name_error (user_utils , requests_mock ):
217217 user_id = "user1"
218- patch = requests_mock .patch (
218+ patche = requests_mock .patch (
219219 f"{ MAS_API_URL } /v3/users/{ user_id } " ,
220220 request_headers = {"x-access-token" : TOKEN },
221221 json = {"error" : "notfound" },
222222 status_code = 404
223223 )
224224 with pytest .raises (Exception ):
225225 user_utils .update_user_display_name (user_id , "display_name" )
226- assert patch .call_count == 1
226+ assert patche .call_count == 1
227227
228228
229229def test_link_user_to_local_idp (user_utils , requests_mock ):
@@ -609,7 +609,7 @@ def json_callback(request, context):
609609 attempts = attempts + 1
610610 return ret
611611
612- patch = requests_mock .patch (
612+ patche = requests_mock .patch (
613613 f"{ MAS_API_URL } /v3/users/{ user_id } " ,
614614 request_headers = {"x-access-token" : TOKEN },
615615 json = {"id" : user_id },
@@ -627,7 +627,7 @@ def json_callback(request, context):
627627 assert get .call_count == 3
628628
629629 # a single resync should have been triggered
630- assert patch .call_count == 1
630+ assert patche .call_count == 1
631631
632632
633633def test_check_user_sync_appstate_transient_error (user_utils , requests_mock ):
0 commit comments