Skip to content

Commit 3639b0f

Browse files
committed
fix APIArtifactHandlerTests
1 parent 47fb91e commit 3639b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiita_db/handlers/tests/test_artifact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def test_post(self):
368368
# send the new data
369369
del data['prep_id']
370370
obs = self.post('/qiita_db/artifact/', headers=self.header, data=data)
371-
jid = obs.body.decode("utf-8")
371+
jid = loads(obs.body)['job_id']
372372

373373
job = qdb.processing_job.ProcessingJob(jid)
374374
while job.status not in ('error', 'success'):
@@ -404,7 +404,7 @@ def test_post(self):
404404
'files': dumps({'biom': [fp]})}
405405

406406
obs = self.post('/qiita_db/artifact/', headers=self.header, data=data)
407-
jid = obs.body.decode("utf-8")
407+
jid = loads(obs.body)['job_id']
408408

409409
job = qdb.processing_job.ProcessingJob(jid)
410410
while job.status not in ('error', 'success'):

0 commit comments

Comments
 (0)