@@ -75,20 +75,20 @@ def func(a, b, c, d):
7575
7676 def test__push_artifacts_files_to_central (self ):
7777 class fakeClient ():
78- def push_file_to_central (self , fp ):
79- return 'pushed:%s' % fp
80-
81- obs = QiitaCommand . _push_artifacts_files_to_central (
82- fakeClient () , [
83- ArtifactInfo ( "stefArtiName " , "Atype" , [
84- ( "fp1 " , "preprocessed_fasta" ),
85- ( "fp2" , "preprocessed_fastq" )]) ,
86- None ,
87- ArtifactInfo ( "artiName" , "artiType" , [])] )
88-
89- self .assertIn ('pushed:' , obs [0 ].files [0 ][0 ])
90- self .assertIn ('pushed:' , obs [0 ].files [1 ][0 ])
91- self .assertEqual ([], obs [2 ].files )
78+ def push_file_to_central (self , filepath ):
79+ return 'pushed:%s' % filepath
80+
81+ artifacts = [
82+ ArtifactInfo ( "stefArtiName" , "Atype" , [
83+ ( "fp1 " , "preprocessed_fasta" ),
84+ ( "fp2 " , "preprocessed_fastq" )] ),
85+ None ,
86+ ArtifactInfo ( "artiName" , "artiType" , [])]
87+ QiitaCommand . _push_artifacts_files_to_central ( fakeClient (), artifacts )
88+
89+ self .assertIn ('pushed:' , artifacts [0 ].files [0 ][0 ])
90+ self .assertIn ('pushed:' , artifacts [0 ].files [1 ][0 ])
91+ self .assertEqual ([], artifacts [2 ].files )
9292
9393
9494class QiitaArtifactTypeTest (TestCase ):
0 commit comments