Ignore:
Timestamp:
11 Feb 2015, 10:12:15 (10 years ago)
Author:
Henrik Bettermann
Message:

Ensure that also certcourses_catalog has been updated after moving a certificate.

File:
1 edited

Legend:

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

    r10634 r12590  
    5151        assert results[0] is self.certificate
    5252
     53        # Also certcourses_catalog has been updated
     54        cat = queryUtility(ICatalog, name='certcourses_catalog')
     55        results = cat.searchResults(course_code=('COURSE1','COURSE1'))
     56        results = [x for x in results] # Turn results generator into list
     57        assert len(results) == 1
     58        assert results[0] is self.app['faculties']['fac1'][
     59                'dep2'].certificates['CERT1']['COURSE1_100']
     60
    5361        # We can find the student studying in the new department
    5462        cat = queryUtility(ICatalog, name='students_catalog')
Note: See TracChangeset for help on using the changeset viewer.