Changeset 17640 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 13 Nov 2023, 08:46:45 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r16831 r17640 525 525 return 526 526 527 def test_export_selected_pid(self): 528 # we can export a filtered set of students (filtered by session/level) 529 self.setup_student(self.student) 530 self.app['students'].addStudent(self.student) 531 notify(grok.ObjectModifiedEvent(self.student)) 532 exporter = StudentStudyCourseExporter() 533 exporter.export_selected( 534 self.app, self.outfile, selected=[self.payment.p_id]) 535 result = open(self.outfile, 'rb').read() 536 self.assertEqual( 537 result, 538 'certificate,current_level,current_session,current_verdict,' 539 'entry_mode,entry_session,previous_verdict,student_id,previous\r\n' 540 541 'CERT1,200,2012,0,ug_ft,2010,0,A111111,0\r\n' 542 ) 543 return 544 527 545 class PreviousStudyCourseExporterTests(StudentImportExportSetup): 528 546
Note: See TracChangeset for help on using the changeset viewer.