Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:biocore/qiita into delete-user
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Feb 1, 2022
2 parents eb0e603 + 7aa8a18 commit 054c70b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions qiita_pet/handlers/api_proxy/tests/test_prep_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_prep_template_summary_get_req(self):
('TCGACCAAACAC', 1), ('TGAGTGGTCTGT', 1),
('TGCTACAGACGT', 1), ('TGGTTATGGCAC', 1),
('TTGCACCGTCGA', 1)]), ('center_name', [('ANL', 27)]),
('center_project_name', [('nan', 27)]),
('center_project_name', [('None', 27)]),
('emp_status', [('EMP', 27)]),
('experiment_center', [('ANL', 27)]),
('experiment_design_description', [('micro biome of soil and '
Expand Down Expand Up @@ -269,7 +269,7 @@ def test_prep_template_summary_get_req(self):
('target_gene', [('16S rRNA', 27)]),
('target_subfragment', [('V4', 27)])], 'status': 'success',
'message': '', 'editable': True}
self.assertEqual(obs, exp)
self.assertDictEqual(obs, exp)

def test_prep_template_summary_get_req_no_access(self):
obs = prep_template_summary_get_req(1, 'demo@microbio.me')
Expand Down Expand Up @@ -451,7 +451,7 @@ def test_prep_template_post_req(self):
exp = {'status': 'warning',
'message': [
'Both a converter and dtype were specified for column '
'sample_name - only the converter will be used', 'Some '
'sample_name - only the converter will be used.', 'Some '
'functionality will be disabled due to missing columns:',
'\tEBI submission disabled: center_name, '
'experiment_design_description, instrument_model, '
Expand All @@ -462,7 +462,6 @@ def test_prep_template_post_req(self):
'description of these fields.'],
'file': 'update.txt',
'id': 'ignored in test'}

self.assertCountEqual(obs['message'].split('\n'), exp['message'])
self.assertEqual(obs['status'], exp['status'])
self.assertEqual(obs['file'], exp['file'])
Expand Down

0 comments on commit 054c70b

Please sign in to comment.