Ignore:
Timestamp:
11 Feb 2013, 14:36:22 (12 years ago)
Author:
Henrik Bettermann
Message:

The catalog tests now reflect that the the students_catalog is _not_ updated when the certificate's study_mode has changed. Automatic students_catalog updates would significantly slow down certificate imports.

File:
1 edited

Legend:

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

    r9798 r9940  
    162162        assert len(results) == 1
    163163        assert results[0] is self.app['students'][self.student_id]
     164        # Attention: A change of the certificate's study mode
     165        # is not reflected by the students catalog. The students_catalog
     166        # must be reindexed manually.
     167        self.certificate.study_mode = u'ug_pt'
     168        results = cat.searchResults(current_mode=('ug_ft', 'ug_ft'))
     169        assert len(results) == 1
     170        results = cat.searchResults(current_mode=('pg_ft', 'pg_ft'))
     171        assert len(results) == 0
    164172        return
    165173
Note: See TracChangeset for help on using the changeset viewer.