File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def delete_user(self, uid):
320
320
"""Deletes the user identified by the specified user ID."""
321
321
_Validator .validate_uid (uid )
322
322
try :
323
- response = self ._request ('post' , 'deleteAccount' , json = {'localId' : [ uid ] })
323
+ response = self ._request ('post' , 'deleteAccount' , json = {'localId' : uid })
324
324
except requests .exceptions .RequestException as error :
325
325
self ._handle_http_error (
326
326
USER_DELETE_ERROR , 'Failed to delete user: {0}.' .format (uid ), error )
Original file line number Diff line number Diff line change 20
20
21
21
def test_delete_non_existing ():
22
22
with pytest .raises (instance_id .ApiCallError ) as excinfo :
23
- instance_id .delete_instance_id ('non-existing' )
24
- assert str (excinfo .value ) == 'Instance ID "non-existing": Failed to find the instance ID.'
23
+ # legal instance IDs are /[cdef][A-Za-z0-9_-]{9}[AEIMQUYcgkosw048]/
24
+ instance_id .delete_instance_id ('fictive-ID0' )
25
+ assert str (excinfo .value ) == 'Instance ID "fictive-ID0": Failed to find the instance ID.'
You can’t perform that action at this time.
0 commit comments