mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-02-28 07:10:40 +00:00
Sample csv file for testing the file upload feature
Attempt at testing the file upload feature. Test fails because SQLite doesn't accept the date as a string. NEED TO FIND A SOLUTION FOR THIS
This commit is contained in:
parent
a2ddfaf03b
commit
f4bd576a72
2
tests/data/ExampleStudyID15370.csv
Normal file
2
tests/data/ExampleStudyID15370.csv
Normal file
@ -0,0 +1,2 @@
|
||||
STUDYID,UVA_STUDY_TRACKING,IS_IND,IND_1,IND_2,IND_3,IS_UVA_IND,IS_IDE,IDE,IS_UVA_IDE,IS_CHART_REVIEW,IS_RADIATION,GCRC_NUMBER,IS_GCRC,IS_PRC_DSMP,IS_PRC,PRC_NUMBER,IS_IBC,IBC_NUMBER,IS_SPONSOR_TRACKING,SPONSOR_TRACKING,SPONSORS_PROTOCOL_REVISION_DATE,IS_SPONSOR_MONITORING,IS_DSMB,IS_COMPLETE_NON_IRB_REGULATORY,IS_AUX,IS_SPONSOR,IS_GRANT,IS_COMMITTEE_CONFLICT,DSMB,DSMB_FREQUENCY,IS_DB,IS_UVA_DB,IS_CENTRAL_REG_DB,IS_CONSENT_WAIVER,IS_HGT,IS_GENE_TRANSFER,IS_TISSUE_BANKING,IS_SURROGATE_CONSENT,IS_ADULT_PARTICIPANT,IS_MINOR_PARTICIPANT,IS_MINOR,IS_BIOMEDICAL,IS_QUALITATIVE,IS_PI_SCHOOL,IS_PRISONERS_POP,IS_PREGNANT_POP,IS_FETUS_POP,IS_MENTAL_IMPAIRMENT_POP,IS_ELDERLY_POP,IS_OTHER_VULNERABLE_POP,OTHER_VULNERABLE_DESC,IS_MULTI_SITE,IS_UVA_LOCATION,NON_UVA_LOCATION,MULTI_SITE_LOCATIONS,IS_OUTSIDE_CONTRACT,IS_UVA_PI_MULTI,IS_NOT_PRC_WAIVER,IS_INSIDE_CONTRACT,IS_CANCER_PATIENT,UPLOAD_COMPLETE,IS_FUNDING_SOURCE,IS_CODED_RESEARCH,IS_OUTSIDE_SPONSOR,IS_PI_INITIATED,IS_ENGAGED_RESEARCH,IS_APPROVED_DEVICE,IS_FINANCIAL_CONFLICT,IS_NOT_CONSENT_WAIVER,IS_FOR_CANCER_CENTER,IS_REVIEW_BY_CENTRAL_IRB,IRBREVIEWERADMIN,IS_UVA_COLLABANALYSIS
|
||||
15370,,0,abc,def,ghi,,1,1234,1,0,,,,1,,,,,1,123456,2019-01-01T00:00:00,1,1,,1,1,1,0,UVA Cancer Center,4,,,1,0,0,0,,,,,,1,0,1,,,,,,,,1,0,"Martha Jefferson Hospital, Augusta Health Medical Center, Rockingham Memorial Hospital",,1,,,1,1,,,,1,1,,1,1,0,,1,,1
|
|
@ -164,6 +164,14 @@ class Sanity_Check_Test(unittest.TestCase):
|
||||
study = self.add_study(title=title)
|
||||
self.assertEqual(title, study.TITLE)
|
||||
|
||||
# def test_update_study_from_csv(self):
|
||||
# study = self.add_study()
|
||||
# f = open('tests/data/ExampleStudyID15370.csv', 'rb')
|
||||
# r = self.app.post(f'/study_details/{study.STUDYID}', data={'file': [f]}, follow_redirects=False)
|
||||
#
|
||||
# print(r)
|
||||
# print('test_update_study_from_csv')
|
||||
|
||||
# def test_study_details_validation(self):
|
||||
#
|
||||
# test_study = self.add_study()
|
||||
|
Loading…
x
Reference in New Issue
Block a user