@@ -253,7 +253,7 @@ def test_accept_a_request(
253253
254254 # random user can't lift embargo
255255 _add_embargo (res_record1 , db )
256- with pytest .raises (PermissionDeniedError ) as e :
256+ with pytest .raises (PermissionDeniedError ):
257257 service .lift_embargo (_id = recid , identity = test_user .identity )
258258
259259
@@ -330,12 +330,12 @@ def test_decline_a_request(
330330
331331 # community owner can't lift embargo
332332 _add_embargo (res_record1 , db )
333- with pytest .raises (PermissionDeniedError ) as e :
333+ with pytest .raises (PermissionDeniedError ):
334334 service .lift_embargo (_id = recid , identity = community_owner .identity )
335335
336336 # random user can't lift embargo
337337 _add_embargo (res_record1 , db )
338- with pytest .raises (PermissionDeniedError ) as e :
338+ with pytest .raises (PermissionDeniedError ):
339339 service .lift_embargo (_id = recid , identity = test_user .identity )
340340
341341
@@ -416,5 +416,5 @@ def test_request_expire(
416416
417417 # random user can't lift embargo
418418 _add_embargo (res_record1 , db )
419- with pytest .raises (PermissionDeniedError ) as e :
419+ with pytest .raises (PermissionDeniedError ):
420420 service .lift_embargo (_id = recid , identity = test_user .identity )
0 commit comments