mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 08:44:46 +00:00
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:
parent
d8552b4955
commit
584807bb43
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user