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.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 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
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py

    r9842 r9940  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Kofa certificates
     18"""Kofa certificates and certificate courses
    1919"""
    2020import grok
Note: See TracChangeset for help on using the changeset viewer.