@@ -148,11 +148,11 @@ def test_get_non_existing_user_by_email():
148
148
assert str (excinfo .value ) == error_msg
149
149
150
150
def test_update_non_existing_user ():
151
- with pytest .raises (auth .UserNotFoundError ) as excinfo :
151
+ with pytest .raises (auth .UserNotFoundError ):
152
152
auth .update_user ('non.existing' )
153
153
154
154
def test_delete_non_existing_user ():
155
- with pytest .raises (auth .UserNotFoundError ) as excinfo :
155
+ with pytest .raises (auth .UserNotFoundError ):
156
156
auth .delete_user ('non.existing' )
157
157
158
158
@pytest .fixture
@@ -256,7 +256,7 @@ def test_create_user(new_user):
256
256
assert user .user_metadata .creation_timestamp > 0
257
257
assert user .user_metadata .last_sign_in_timestamp is None
258
258
assert len (user .provider_data ) is 0
259
- with pytest .raises (auth .UidAlreadyExistsError ) as excinfo :
259
+ with pytest .raises (auth .UidAlreadyExistsError ):
260
260
auth .create_user (uid = new_user .uid )
261
261
262
262
def test_update_user (new_user ):
@@ -326,7 +326,7 @@ def test_disable_user(new_user_with_params):
326
326
def test_delete_user ():
327
327
user = auth .create_user ()
328
328
auth .delete_user (user .uid )
329
- with pytest .raises (auth .UserNotFoundError ) as excinfo :
329
+ with pytest .raises (auth .UserNotFoundError ):
330
330
auth .get_user (user .uid )
331
331
332
332
def test_revoke_refresh_tokens (new_user ):
0 commit comments