File tree Expand file tree Collapse file tree 2 files changed +3
-28
lines changed 
test/integration_new/object Expand file tree Collapse file tree 2 files changed +3
-28
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def main():
5858        'python-dateutil' ,  # To be removed after dropping Python 3.6 
5959    ]
6060    redis_requires  =  ['redis>=2.10.3' ]
61-     jwt_requires  =  ['pyjwt>=1.3 .0' , 'cryptography>=3' ]
61+     jwt_requires  =  ['pyjwt>=1.7 .0' , 'cryptography>=3' ]
6262    coveralls_requires  =  ['coveralls' ]
6363    dev_requires  =  ['tox' ]
6464    gh_requires  =  ['tox-gh-actions' ]
Original file line number Diff line number Diff line change 1- import  time 
2- 
3- import  pytest 
4- 
5- from  boxsdk  import  BoxAPIException 
6- 
7- 
81def  test_upload_and_delete_avatar (user , image_path ):
9-     try :
10-         avatar_urls  =  user .upload_avatar (image_path )
11-         assert  'large'  in  avatar_urls  and  'preview'  in  avatar_urls  and  'small'  in  avatar_urls 
12- 
13-         for  _  in  range (3 ):
14-             try :
15-                 avatar  =  user .get_avatar ()
16-             except  BoxAPIException :
17-                 time .sleep (1 )
18-                 continue 
19-             break 
20-         else :
21-             raise  Exception ("Cannot get avatar" )
22- 
23-         assert  avatar 
24-     finally :
25-         user .delete_avatar ()
26- 
27-     with  pytest .raises (BoxAPIException ):
28-         user .get_avatar ()
2+     avatar_urls  =  user .upload_avatar (image_path )
3+     assert  'large'  in  avatar_urls  and  'preview'  in  avatar_urls  and  'small'  in  avatar_urls 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments