Skip to content

Commit d74f3e8

Browse files
committed
fix some more errors
1 parent 0e281e4 commit d74f3e8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

qiita_db/metadata_template/test/test_sample_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,9 +1365,9 @@ def test_generate_files(self):
13651365
fp_count = qdb.util.get_count("qiita.filepath")
13661366
self.tester.generate_files()
13671367
obs = qdb.util.get_count("qiita.filepath")
1368-
# We just make sure that the count has been increased by 3, since
1368+
# We just make sure that the count has been increased by 1, since
13691369
# the contents of the files have been tested elsewhere.
1370-
self.assertEqual(obs, fp_count + 3)
1370+
self.assertEqual(obs, fp_count + 1)
13711371

13721372
def test_to_file(self):
13731373
"""to file writes a tab delimited file with all the metadata"""

qiita_pet/handlers/api_proxy/tests/test_prep_template.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def test_prep_template_ajax_get_req(self):
7676
'name': "Prep information 1",
7777
'files': ["uploaded_file.txt"],
7878
'download_prep_id': 24,
79-
'other_filepaths': ['1_prep_1_qiime_19700101-000000.txt',
80-
'1_prep_1_19700101-000000.txt',
79+
'other_filepaths': ['1_prep_1_19700101-000000.txt',
8180
'1_prep_1_qiime_19700101-000000.txt',
8281
'1_prep_1_19700101-000000.txt'],
8382
'num_samples': 27,
@@ -200,7 +199,7 @@ def test_prep_template_filepaths_get_req(self):
200199
self.assertEqual(obs['message'], '')
201200
# [0] the fp_id is the first element, that should change
202201
fp_ids = [fp[0] for fp in obs['filepaths']]
203-
self.assertCountEqual(fp_ids, [18, 19, 20, 21, 24])
202+
self.assertCountEqual(fp_ids, [18, 19, 20, 21])
204203

205204
def test_prep_template_filepaths_get_req_no_access(self):
206205
obs = prep_template_filepaths_get_req(1, '[email protected]')

0 commit comments

Comments
 (0)