Ignore:
Timestamp:
4 Oct 2012, 20:40:29 (12 years ago)
Author:
Henrik Bettermann
Message:

Set validation_date and validated_by in study level objects when importing verdicts.

File:
1 edited

Legend:

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

    r9294 r9295  
    988988        student = self.processor.getParent(
    989989            dict(matric_number='100005'), self.app)
    990         self.assertEqual(studycourse.current_verdict, '0')
    991990        self.assertEqual(student.state, 'returning')
     991        self.assertEqual(student['studycourse'].current_verdict, 'A')
    992992        self.assertEqual(studycourse.current_level, 200)
     993        self.assertEqual(student['studycourse']['200'].validated_by, 'System')
     994        self.assertTrue(isinstance(
     995            student['studycourse']['200'].validation_date, datetime.datetime))
    993996        content = open(fail_file).read()
    994997        self.assertEqual(
Note: See TracChangeset for help on using the changeset viewer.