File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed 
qiita_pet/handlers/cloud_handlers Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- from  .file_transfer_handlers  import  (FetchFileFromCentralHandler ,  
1+ from  .file_transfer_handlers  import  (FetchFileFromCentralHandler ,
22                                     PushFileToCentralHandler )
33
44__all__  =  ['FetchFileFromCentralHandler' ]
55
66ENDPOINTS  =  [
77    (r"/cloud/fetch_file_from_central/(.*)" , FetchFileFromCentralHandler ),
88    (r"/cloud/push_file_to_central/" , PushFileToCentralHandler )
9- ]
9+ ]
Original file line number Diff line number Diff line change 33from  os  import  remove 
44from  shutil  import  rmtree 
55
6- from  qiita_core .testing  import  wait_for_prep_information_job 
76from  qiita_db .handlers .tests .oauthbase  import  OauthTestingBase 
87import  qiita_db  as  qdb 
98
9+ 
1010class  FetchFileFromCentralHandlerTests (OauthTestingBase ):
1111    def  setUp (self ):
1212        super (FetchFileFromCentralHandlerTests , self ).setUp ()
@@ -27,17 +27,18 @@ def test_get(self):
2727        obs  =  self .get (endpoint  +  'nonexistingfile' , headers = self .header )
2828        self .assertEqual (obs .code , 403 )
2929        self .assertIn ('outside of the BASE_DATA_DIR' , obs .reason )
30-          
30+ 
3131        base_data_dir  =  qdb .util .get_db_files_base_dir ()
3232        obs  =  self .get (endpoint  +  base_data_dir [1 :] +  '/nonexistingfile' ,
3333                       headers = self .header )
3434        self .assertEqual (obs .code , 403 )
3535        self .assertIn ('The requested file is not present' , obs .reason )
36-          
37-         obs  =  self .get (endpoint  +  base_data_dir [1 :] +  \ 
36+ 
37+         obs  =  self .get (endpoint  +  base_data_dir [1 :] + 
3838                       '/raw_data/FASTA_QUAL_preprocessing.fna' ,
3939                       headers = self .header )
4040        print (obs .__dict__ )
4141
42+ 
4243if  __name__  ==  "__main__" :
43-     main ()
44+     main ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments