17
17
from shutil import rmtree
18
18
from qiita_client .testing import PluginTestCase
19
19
from qiita_client .exceptions import NotFoundError
20
+ from sequence_processing_pipeline .PipelineError import PipelineError
20
21
21
22
22
23
class WorkflowFactoryTests (PluginTestCase ):
@@ -123,7 +124,7 @@ def test_metagenomic_workflow_creation(self):
123
124
self .assertEqual (wf .assay_type , ASSAY_NAME_METAGENOMIC )
124
125
125
126
with self .assertRaisesRegex (
126
- NotFoundError , '{"message": "Study not found"} ' ):
127
+ PipelineError , 'There are no fastq files for FastQCJob ' ):
127
128
wf .execute_pipeline ()
128
129
129
130
def test_metatranscriptomic_workflow_creation (self ):
@@ -147,7 +148,7 @@ def test_metatranscriptomic_workflow_creation(self):
147
148
self .assertEqual (wf .assay_type , ASSAY_NAME_METATRANSCRIPTOMIC )
148
149
149
150
with self .assertRaisesRegex (
150
- NotFoundError , '{"message": "Study not found"} ' ):
151
+ PipelineError , 'There are no fastq files for FastQCJob ' ):
151
152
wf .execute_pipeline ()
152
153
153
154
def test_amplicon_workflow_creation (self ):
@@ -193,7 +194,8 @@ def test_tellseq_workflow_creation(self):
193
194
self .assertEqual (wf .assay_type , ASSAY_NAME_METAGENOMIC )
194
195
195
196
with self .assertRaisesRegex (
196
- NotFoundError , '{"message": "Study not found"}' ):
197
+ FileNotFoundError ,
198
+ 'TellReadJob/sample_index_list_TellReadJob.txt' ):
197
199
wf .execute_pipeline ()
198
200
199
201
0 commit comments