Set progress_status for new studies in BaseTest

This commit is contained in:
mike cullerton 2021-12-10 16:17:23 -05:00
parent d30405226e
commit 4d832891c9
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ from crc import app, db, session
from crc.models.api_models import WorkflowApiSchema, MultiInstanceType from crc.models.api_models import WorkflowApiSchema, MultiInstanceType
from crc.models.file import FileModel, FileDataModel, CONTENT_TYPES from crc.models.file import FileModel, FileDataModel, CONTENT_TYPES
from crc.models.task_event import TaskEventModel from crc.models.task_event import TaskEventModel
from crc.models.study import StudyModel, StudyStatus from crc.models.study import StudyModel, StudyStatus, ProgressStatus
from crc.models.ldap import LdapModel from crc.models.ldap import LdapModel
from crc.models.user import UserModel from crc.models.user import UserModel
from crc.models.workflow import WorkflowSpecModel, WorkflowSpecCategoryModel from crc.models.workflow import WorkflowSpecModel, WorkflowSpecCategoryModel
@ -61,6 +61,7 @@ class BaseTest(unittest.TestCase):
'title': 'The impact of fried pickles on beer consumption in bipedal software developers.', 'title': 'The impact of fried pickles on beer consumption in bipedal software developers.',
'last_updated': datetime.datetime.utcnow(), 'last_updated': datetime.datetime.utcnow(),
'status': StudyStatus.in_progress, 'status': StudyStatus.in_progress,
'progress_status': ProgressStatus.in_progress,
'primary_investigator_id': 'dhf8r', 'primary_investigator_id': 'dhf8r',
'sponsor': 'Sartography Pharmaceuticals', 'sponsor': 'Sartography Pharmaceuticals',
'ind_number': '1234', 'ind_number': '1234',
@ -71,6 +72,7 @@ class BaseTest(unittest.TestCase):
'title': 'Requirement of hippocampal neurogenesis for the behavioral effects of soft pretzels', 'title': 'Requirement of hippocampal neurogenesis for the behavioral effects of soft pretzels',
'last_updated': datetime.datetime.utcnow(), 'last_updated': datetime.datetime.utcnow(),
'status': StudyStatus.in_progress, 'status': StudyStatus.in_progress,
'progress_status': ProgressStatus.in_progress,
'primary_investigator_id': 'dhf8r', 'primary_investigator_id': 'dhf8r',
'sponsor': 'Makerspace & Co.', 'sponsor': 'Makerspace & Co.',
'ind_number': '5678', 'ind_number': '5678',