Ignore:
Timestamp:
1 Dec 2014, 14:43:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of STUDENT_EXPORTER_NAMES.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py

    r10059 r12104  
    3131from zope.schema.interfaces import RequiredMissing
    3232from waeup.kofa.interfaces import IExtFileStore, IFileStoreNameChooser
    33 from waeup.kofa.students.export import EXPORTER_NAMES
    3433from waeup.kofa.students.student import (
    3534    Student, StudentFactory, handle_student_removed, path_from_studid)
     
    4140    IStudent, IStudentStudyCourse, IStudentPaymentsContainer,
    4241    IStudentAccommodation, IStudentStudyLevel, ICourseTicket, IBedTicket,
    43     IStudentNavigation)
     42    IStudentNavigation, IStudentsUtils)
    4443from waeup.kofa.students.tests.test_batching import StudentImportExportSetup
    4544from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     
    183182
    184183        # The student data were put into CSV files
    185         for name in EXPORTER_NAMES:
     184        STUDENT_EXPORTER_NAMES = getUtility(
     185            IStudentsUtils).STUDENT_EXPORTER_NAMES
     186
     187        for name in STUDENT_EXPORTER_NAMES:
    186188            csv_path = os.path.join(del_dir, '%s.csv' % name)
    187189            self.assertTrue(os.path.isfile(csv_path))
Note: See TracChangeset for help on using the changeset viewer.