Changeset 12985 for main/kofacustom.nigeria/trunk
- Timestamp:
- 22 May 2015, 08:15:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r12503 r12985 86 86 87 87 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 required90 # 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()) == 095 # The customized processor does not complain since 'date_of_birth' is96 # not required in the custom package.97 88 num, num_warns, fin_file, fail_file = self.processor.doImport( 98 89 self.csv_file, STUDENT_HEADER_FIELDS)
Note: See TracChangeset for help on using the changeset viewer.