Skip to content

Commit 7aa8a18

Browse files
authored
fix failing tests due to pandas 1.4.0 (#3174)
* fix failing tests * debug prints * fix tests
1 parent 78c5f9a commit 7aa8a18

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

qiita_pet/handlers/api_proxy/tests/test_prep_template.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_prep_template_summary_get_req(self):
235235
('TCGACCAAACAC', 1), ('TGAGTGGTCTGT', 1),
236236
('TGCTACAGACGT', 1), ('TGGTTATGGCAC', 1),
237237
('TTGCACCGTCGA', 1)]), ('center_name', [('ANL', 27)]),
238-
('center_project_name', [('nan', 27)]),
238+
('center_project_name', [('None', 27)]),
239239
('emp_status', [('EMP', 27)]),
240240
('experiment_center', [('ANL', 27)]),
241241
('experiment_design_description', [('micro biome of soil and '
@@ -269,7 +269,7 @@ def test_prep_template_summary_get_req(self):
269269
('target_gene', [('16S rRNA', 27)]),
270270
('target_subfragment', [('V4', 27)])], 'status': 'success',
271271
'message': '', 'editable': True}
272-
self.assertEqual(obs, exp)
272+
self.assertDictEqual(obs, exp)
273273

274274
def test_prep_template_summary_get_req_no_access(self):
275275
obs = prep_template_summary_get_req(1, 'demo@microbio.me')
@@ -451,7 +451,7 @@ def test_prep_template_post_req(self):
451451
exp = {'status': 'warning',
452452
'message': [
453453
'Both a converter and dtype were specified for column '
454-
'sample_name - only the converter will be used', 'Some '
454+
'sample_name - only the converter will be used.', 'Some '
455455
'functionality will be disabled due to missing columns:',
456456
'\tEBI submission disabled: center_name, '
457457
'experiment_design_description, instrument_model, '
@@ -462,7 +462,6 @@ def test_prep_template_post_req(self):
462462
'description of these fields.'],
463463
'file': 'update.txt',
464464
'id': 'ignored in test'}
465-
466465
self.assertCountEqual(obs['message'].split('\n'), exp['message'])
467466
self.assertEqual(obs['status'], exp['status'])
468467
self.assertEqual(obs['file'], exp['file'])

0 commit comments

Comments
 (0)