Changeset 9684 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 19 Nov 2012, 11:16:54 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9641 r9684 752 752 self.browser.getLink("COURSE1").click() 753 753 self.browser.getLink("Manage").click() 754 self.browser.getControl(name="form.score").value = '10'754 #self.browser.getControl(name="form.score").value = '10' 755 755 self.browser.getControl("Save").click() 756 756 self.assertTrue('Form has been saved' in self.browser.contents) 757 # Grade and weight have been determined 758 self.browser.open(self.studycourse_path + '/100/COURSE1') 759 self.assertFalse('Grade' in self.browser.contents) 760 self.assertFalse('Weight' in self.browser.contents) 761 self.student['studycourse']['100']['COURSE1'].score = 55 762 self.browser.open(self.studycourse_path + '/100/COURSE1') 763 self.assertTrue('Grade' in self.browser.contents) 764 self.assertTrue('Weight' in self.browser.contents) 765 self.assertEqual(self.student['studycourse']['100']['COURSE1'].grade, 'C') 766 self.assertEqual(self.student['studycourse']['100']['COURSE1'].weight, 3) 757 767 # Carry-over courses will be collected when next level is created 758 768 self.browser.open(self.student_path + '/studycourse/manage') 759 769 # Add next level 770 self.student['studycourse']['100']['COURSE1'].score = 10 760 771 self.browser.getControl(name="addlevel").value = ['200'] 761 772 self.browser.getControl(name="level_session").value = ['2005'] … … 764 775 self.assertMatches( 765 776 '...: Study Level 200 (Year 2)...', self.browser.contents) 766 # COURSE1 has score 0 and thus will becomea carry-over course777 # If COURSE1 has score 10 it becomes a carry-over course 767 778 # in level 200 768 779 self.assertEqual( -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9574 r9684 303 303 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 304 304 'passmark,score,semester,title,student_id,certcode\r\n' 305 '0,0,,,,,,0,, 0,,,,\r\n'305 '0,0,,,,,,0,,,,,,\r\n' 306 306 ) 307 307 return … … 321 321 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 322 322 'passmark,score,semester,title,student_id,certcode\r\n' 323 '1,1,CRS1,100,DEP1,FAC1,100,0,100, 0,2,Course 1,A111111,CERT1\r\n'323 '1,1,CRS1,100,DEP1,FAC1,100,0,100,,2,Course 1,A111111,CERT1\r\n' 324 324 ) 325 325 return … … 336 336 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 337 337 'passmark,score,semester,title,student_id,certcode\r\n' 338 '1,1,CRS1,100,DEP1,FAC1,100,0,100, 0,2,Course 1,A111111,CERT1\r\n'338 '1,1,CRS1,100,DEP1,FAC1,100,0,100,,2,Course 1,A111111,CERT1\r\n' 339 339 ) 340 340 return … … 350 350 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 351 351 'passmark,score,semester,title,student_id,certcode\r\n' 352 '1,1,CRS1,100,DEP1,FAC1,100,0,100, 0,2,Course 1,A111111,CERT1\r\n'352 '1,1,CRS1,100,DEP1,FAC1,100,0,100,,2,Course 1,A111111,CERT1\r\n' 353 353 ) 354 354 return
Note: See TracChangeset for help on using the changeset viewer.