Fixed issue with Study Sponsors.

Was using Sponsor IDs that were only available locally.
Now we load test sponsors, and use them.
This commit is contained in:
mike cullerton 2021-04-13 12:47:42 -04:00
parent d8552b4955
commit 584807bb43

View File

@ -118,7 +118,8 @@ class Sanity_Check_Test(unittest.TestCase):
self.assertEqual(1, count)
# Add Sponsor
self.app.post(f'/study_sponsor/{study.STUDYID}', data={'SPONSOR_IDS': [961, 2775]})
self.load_sponsors()
self.app.post(f'/study_sponsor/{study.STUDYID}', data={'SPONSOR_IDS': [101, 102]})
count = StudySponsor.query.filter(StudySponsor.SS_STUDY == study.STUDYID).count()
self.assertEqual(2, count)