Changeset 13925 for main/waeup.kofa/branches/uli-scores-upload/src
- Timestamp:
- 13 Jun 2016, 01:12:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/tests/test_browser.py
r13924 r13925 3854 3854 3855 3855 3856 UPLOAD_CSV_TEMPLATE = ( 3857 'matric_number,student_id,display_fullname,level,code,level_session,' 3858 'score\r\n' 3859 '234,K1000000,Anna Tester,100,COURSE1,2004,%s\r\n') 3860 3856 3861 class LecturerUITests(StudentsFullSetup): 3857 3862 # Tests for UI actions when acting as lecturer. … … 4056 4061 'K1000000,Anna Tester,100,COURSE1,2004,\r\n') 4057 4062 4058 UPLOAD_CSV_TEMPLATE = (4059 'matric_number,student_id,display_fullname,level,code,'4060 'level_session,score\r\n'4061 '234,K1000000,Anna Tester,100,COURSE1,2004,%s\r\n')4062 4063 4063 def test_scores_csv_upload_available(self): 4064 4064 # lecturers can upload a CSV file to set values. … … 4068 4068 self.browser.open(self.edit_scores_url) 4069 4069 upload_ctrl = self.browser.getControl(name='uploadfile:file') 4070 upload_file = StringIO( self.UPLOAD_CSV_TEMPLATE % '65')4070 upload_file = StringIO(UPLOAD_CSV_TEMPLATE % '65') 4071 4071 upload_ctrl.add_file(upload_file, 'text/csv', 'myscores.csv') 4072 4072 self.browser.getControl("Update scores").click()
Note: See TracChangeset for help on using the changeset viewer.