Commit c1355887 authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS:893 Update reuse tests

parent 6077725a
Pipeline #83057 passed with stage
in 27 seconds
......@@ -21,7 +21,7 @@ from fts3rest.tests import TestController
from fts3rest.lib.base import Session
from fts3.model import Job, File, JobActiveStates, Credential, FileActiveStates, FileTerminalStates
from datetime import datetime, timedelta
import pylons
class TestJobCancel(TestController):
"""
......
......@@ -417,17 +417,17 @@ class TestMultiple(TestController):
job = Session.query(Job).get(job_id)
auto_session_reuse = pylons.config['fts3.AutoSessionReuse']
self.assertEqual(auto_session_reuse, 'false')
if auto_session_reuse == 'true':
self.assertEqual(job.job_type, 'Y')
files = Session.query(File).filter(File.job_id == job_id)
hashed = files[0].hashed_id
for f in files:
self.assertEqual(1024, f.user_filesize)
self.assertEqual(hashed, f.hashed_id)
else:
self.assertEqual(job.job_type, 'N')
files = Session.query(File).filter(File.job_id == job_id)
hashed = files[0].hashed_id
for f in files:
self.assertEqual(1024, f.user_filesize)
self.assertEqual(hashed, f.hashed_id)
def test_submit_reuse_auto_big(self):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment