Ignore:
Timestamp:
22 May 2015, 08:15:48 (10 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r12503 r12985  
    8686
    8787    def test_import(self):
    88         # We have an empty column 'date_of_birth' in  the import file.
    89         # The original processor will fail because 'date_of_birth' is required
    90         # in the base package.
    91         num, num_warns, fin_file, fail_file = self.processor_base.doImport(
    92             self.csv_file, STUDENT_HEADER_FIELDS)
    93         self.assertEqual(num_warns,3)
    94         assert len(self.app['students'].keys()) == 0
    95         # The customized processor does not complain since 'date_of_birth' is
    96         # not required in the custom package.
    9788        num, num_warns, fin_file, fail_file = self.processor.doImport(
    9889            self.csv_file, STUDENT_HEADER_FIELDS)
Note: See TracChangeset for help on using the changeset viewer.