Changeset 14116 for main/waeup.aaue/trunk/src
- Timestamp:
- 23 Aug 2016, 09:03:03 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py
r14082 r14116 46 46 result = get_students('fac1', 'dep1', 2010, 100, course_codes) 47 47 self.assertEqual(result, 48 [(u'1234', u'TESTER, Bob', {'Course1': ( 88, 'A')})])48 [(u'1234', u'TESTER, Bob', {'Course1': (70, 'A')})]) 49 49 return 50 50 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14075 r14116 347 347 self.browser.open(self.edit_scores_url) 348 348 upload_ctrl = self.browser.getControl(name='uploadfile:file') 349 upload_file = StringIO(UPLOAD_CSV_TEMPLATE % ('65',' 77'))349 upload_file = StringIO(UPLOAD_CSV_TEMPLATE % ('65','22')) 350 350 upload_ctrl.add_file(upload_file, 'text/csv', 'myscores.csv') 351 351 self.browser.getControl("Update editable scores from").click() … … 354 354 self.student['studycourse']['100']['COURSE1'].score, 65) 355 355 self.assertEqual( 356 self.student['studycourse']['100']['COURSE1'].ca, 77)356 self.student['studycourse']['100']['COURSE1'].ca, 22) 357 357 358 358 def test_lecturers_can_download_course_tickets(self): … … 461 461 self.browser.contents) 462 462 self.browser.getControl("Create course list now").click() 463 self.student['studycourse']['100']['COURSE1'].score = 987463 self.student['studycourse']['100']['COURSE1'].score = 67 464 464 self.browser.getLink("100").click() 465 465 # Course results can't be seen 466 self.assertFalse(' 987' in self.browser.contents)466 self.assertFalse('<td>67</td>' in self.browser.contents) 467 467 self.browser.getLink("Edit course list").click() 468 self.assertFalse(' 987' in self.browser.contents)468 self.assertFalse('<td>67</td>' in self.browser.contents) 469 469 self.browser.getControl("Register course list").click() 470 470 self.assertTrue('Course registration has ended. Please pay' in self.browser.contents) … … 782 782 in self.browser.contents) 783 783 self.browser.getControl(name="scores:list", index=0).value = '55' 784 self.browser.getControl(name="cas:list", index=0).value = ' 66'784 self.browser.getControl(name="cas:list", index=0).value = '22' 785 785 self.browser.getControl("Update scores from").click() 786 786 # New score and ca has been set. … … 788 788 self.student['studycourse']['100']['COURSE1'].score, 55) 789 789 self.assertEqual( 790 self.student['studycourse']['100']['COURSE1'].ca, 66)790 self.student['studycourse']['100']['COURSE1'].ca, 22) 791 791 # Score editing has been logged. 792 792 logfile = os.path.join( … … 796 796 'E1000000 100/COURSE1 score updated (55)' in logcontent) 797 797 self.assertTrue('mrslecturer - waeup.aaue.students.browser.CustomEditScoresPage - ' 798 'E1000000 100/COURSE1 ca updated ( 66)' in logcontent)798 'E1000000 100/COURSE1 ca updated (22)' in logcontent) 799 799 # Non-integer scores won't be accepted. 800 800 self.browser.open(
Note: See TracChangeset for help on using the changeset viewer.