Will this build with Travis

This commit is contained in:
mike cullerton 2021-06-23 11:38:09 -04:00
parent 783952ef43
commit eaf3ad6e24

View File

@ -123,17 +123,20 @@ class Sanity_Check_Test(unittest.TestCase):
count = StudySponsor.query.filter(StudySponsor.SS_STUDY == study.STUDYID).count() count = StudySponsor.query.filter(StudySponsor.SS_STUDY == study.STUDYID).count()
self.assertEqual(2, count) self.assertEqual(2, count)
# # Add IRB Info # Add IRB Info
# tracking_string = 'some tracking data' tracking_string = 'some tracking data'
# event = 'Approval New Protocol' event = 'Approval New Protocol'
# event_id = '57' event_id = '57'
# event_string = f"('{event_id}', '{event}')" event_string = f"('{event_id}', '{event}')"
#
# status = 'Open to enrollment' status = 'Open to enrollment'
# status_id ='2' status_id ='2'
# status_string = f"('{status_id}', '{status}')" status_string = f"('{status_id}', '{status}')"
#
# self.app.post(f'/irb_info/{study.STUDYID}', data={'UVA_STUDY_TRACKING': tracking_string, 'IRBEVENT': event_string, 'IRB_STATUS': status_string}) self.app.post(f'/irb_info/{study.STUDYID}', data={'UVA_STUDY_TRACKING': tracking_string, 'IRBEVENT': event_string, 'IRB_STATUS': status_string})
count = IRBInfo.query.filter(IRBInfo.SS_STUDY_ID == study.STUDYID).count()
self.assertGreater(count, 0)
# irb_info = IRBInfo.query.filter(IRBInfo.SS_STUDY_ID == study.STUDYID).first() # irb_info = IRBInfo.query.filter(IRBInfo.SS_STUDY_ID == study.STUDYID).first()
# self.assertEqual(irb_info.UVA_STUDY_TRACKING, tracking_string) # self.assertEqual(irb_info.UVA_STUDY_TRACKING, tracking_string)
# self.assertEqual(irb_info.IRBEVENT[0].EVENT, event) # self.assertEqual(irb_info.IRBEVENT[0].EVENT, event)