1717from shutil import rmtree
1818from qiita_client .testing import PluginTestCase
1919from qiita_client .exceptions import NotFoundError
20+ from sequence_processing_pipeline .PipelineError import PipelineError
2021
2122
2223class WorkflowFactoryTests (PluginTestCase ):
@@ -123,7 +124,7 @@ def test_metagenomic_workflow_creation(self):
123124 self .assertEqual (wf .assay_type , ASSAY_NAME_METAGENOMIC )
124125
125126 with self .assertRaisesRegex (
126- NotFoundError , '{"message": "Study not found"} ' ):
127+ PipelineError , 'There are no fastq files for FastQCJob ' ):
127128 wf .execute_pipeline ()
128129
129130 def test_metatranscriptomic_workflow_creation (self ):
@@ -147,7 +148,7 @@ def test_metatranscriptomic_workflow_creation(self):
147148 self .assertEqual (wf .assay_type , ASSAY_NAME_METATRANSCRIPTOMIC )
148149
149150 with self .assertRaisesRegex (
150- NotFoundError , '{"message": "Study not found"} ' ):
151+ PipelineError , 'There are no fastq files for FastQCJob ' ):
151152 wf .execute_pipeline ()
152153
153154 def test_amplicon_workflow_creation (self ):
@@ -193,7 +194,8 @@ def test_tellseq_workflow_creation(self):
193194 self .assertEqual (wf .assay_type , ASSAY_NAME_METAGENOMIC )
194195
195196 with self .assertRaisesRegex (
196- NotFoundError , '{"message": "Study not found"}' ):
197+ FileNotFoundError ,
198+ 'TellReadJob/sample_index_list_TellReadJob.txt' ):
197199 wf .execute_pipeline ()
198200
199201
0 commit comments