Ignore:
Timestamp:
23 Mar 2015, 10:40:18 (10 years ago)
Author:
Henrik Bettermann
Message:

Skip empty rows produced by spreadsheet software.

File:
1 edited

Legend:

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

    r12623 r12810  
    411411        num, num_warns, fin_file, fail_file = self.processor.doImport(
    412412            self.csv_file, STUDENT_HEADER_FIELDS)
    413         self.assertEqual(num_warns,0)
     413        self.assertEqual(num_warns, 0)
     414        # Nine students have been added.
    414415        self.assertEqual(len(self.app['students']), 10)
     416        # Two empty rows have been skipped.
     417        self.assertEqual(num, 11)
    415418        self.assertEqual(self.app['students']['X666666'].reg_number,'1')
    416419        self.assertEqual(
Note: See TracChangeset for help on using the changeset viewer.