Skip to content

Commit 41070c2

Browse files
committed
Fix test_job.py
1 parent 9c61f5b commit 41070c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qiita_db/test/test_job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_delete_files(self):
123123
Job(1)
124124

125125
obs = self.conn_handler.execute_fetchall(
126-
"SELECT * FROM qiita.filepath WHERE filepath_id = 12")
126+
"SELECT * FROM qiita.filepath WHERE filepath_id = 10")
127127
self.assertEqual(obs, [])
128128

129129
obs = self.conn_handler.execute_fetchall(
@@ -149,7 +149,7 @@ def test_delete_folders(self):
149149
Job(2)
150150

151151
obs = self.conn_handler.execute_fetchall(
152-
"SELECT * FROM qiita.filepath WHERE filepath_id = 13")
152+
"SELECT * FROM qiita.filepath WHERE filepath_id = 11")
153153
self.assertEqual(obs, [])
154154

155155
obs = self.conn_handler.execute_fetchall(
@@ -300,7 +300,7 @@ def test_add_results(self):
300300
obs = self.conn_handler.execute_fetchall(
301301
"SELECT * FROM qiita.job_results_filepath WHERE job_id = 1")
302302

303-
self.assertEqual(obs, [[1, 12], [1, fp_count + 1]])
303+
self.assertEqual(obs, [[1, 10], [1, fp_count + 1]])
304304

305305
def test_add_results_dir(self):
306306
fp_count = get_count('qiita.filepath')
@@ -313,7 +313,7 @@ def test_add_results_dir(self):
313313
# make sure files attached to job properly
314314
obs = self.conn_handler.execute_fetchall(
315315
"SELECT * FROM qiita.job_results_filepath WHERE job_id = 1")
316-
self.assertEqual(obs, [[1, 12], [1, fp_count + 1]])
316+
self.assertEqual(obs, [[1, 10], [1, fp_count + 1]])
317317

318318
def test_add_results_completed(self):
319319
self.job.status = "completed"

0 commit comments

Comments
 (0)