Skip to content

Commit 66962c2

Browse files
committed
fixing errors
1 parent 0067381 commit 66962c2

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

qiita_db/artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def _associate_with_analysis(instance, analysis_id):
476476
instance = _common_creation_steps(
477477
artifact_type, None, data_type, None)
478478
# Associate the artifact with the analysis
479-
if analysis is not None:
479+
if bool(analysis):
480480
analysis.add_artifact(instance)
481481

482482
# Associate the artifact with its filepaths

qiita_db/handlers/tests/test_processing_job.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def test_get(self):
5151
"phred_quality_threshold": 3, "barcode_type": "golay_12",
5252
"max_barcode_errors": 1.5, "input_data": 1,
5353
'phred_offset': 'auto'}
54-
exp = {'command': cmd, 'parameters': params, 'status': 'success'}
54+
exp = {'command': cmd, 'parameters': params, 'status': 'success',
55+
'msg': ''}
5556
self.assertEqual(loads(obs.body), exp)
5657

5758
def test_get_no_header(self):

qiita_pet/handlers/api_proxy/tests/test_prep_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def test_new_prep_template_get_req(self):
5454
'prep_files': ['uploaded_file.txt'],
5555
'data_types': ['16S', '18S', 'Genomics', 'ITS', 'Metabolomic',
5656
'Metagenomic', 'Metatranscriptomics', 'Multiomic',
57-
'Proteomic', 'Transcriptomics', 'Viromics'],
57+
'Proteomic', 'Transcriptomics', 'Viromics',
58+
'job_output_folder'],
5859
'ontology': {
5960
'ENA': ['Cancer Genomics', 'Epigenetics', 'Exome Sequencing',
6061
'Forensic or Paleo-genomics', 'Gene Regulation Study',

qiita_pet/handlers/study_handlers/tests/test_sample_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def test_sample_template_overview_handler_get_request(self):
308308
'data_types': ['16S', '18S', 'Genomics', 'ITS', 'Metabolomic',
309309
'Metagenomic', 'Metatranscriptomics',
310310
'Multiomic', 'Proteomic', 'Transcriptomics',
311-
'Viromics'],
311+
'Viromics', 'job_output_folder'],
312312
'user_can_edit': True,
313313
'job': None,
314314
'download_id': None,

qiita_pet/test/test_download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ def test_download(self):
425425
self.assertEqual(response.reason, 'Not a valid data_type. Valid types '
426426
'are: 16S, 18S, ITS, Proteomic, Metabolomic, '
427427
'Metagenomic, Multiomic, Metatranscriptomics, '
428-
'Viromics, Genomics, Transcriptomics')
428+
'Viromics, Genomics, Transcriptomics, '
429+
'job_output_folder')
429430

430431
response = self.get(
431432
'/public_download/?data=raw&study_id=1&data_type=Genomics')

0 commit comments

Comments
 (0)