Skip to content

fix failing tests due to pandas 1.4.0 #3174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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