Changeset 16030


Ignore:
Timestamp:
6 Mar 2020, 21:20:29 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust log messages and tests.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r16007 r16030  
    17131713                mapping = {'a':', '.join(deleted)}))
    17141714            self.context.writeLogMessage(
    1715                 self,'removed: %s at %s' %
    1716                 (', '.join(deleted), self.context.level))
     1715                self,'removed: %s' % (', '.join(deleted)))
    17171716        self.redirect(self.url(self.context, u'@@manage')+'#tab2')
    17181717        return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r16027 r16030  
    825825        self.assertTrue(
    826826            'zope.mgr - students.browser.StudyLevelManageFormPage '
    827             '- K1000000 - removed: COURSE1 at 100' in logcontent)
     827            '- K1000000 - level 100 - removed: COURSE1' in logcontent)
    828828        self.browser.getLink("here").click()
    829829        self.browser.getControl(name="form.course").value = ['COURSE1']
     
    28052805        logcontent = open(logfile).read()
    28062806        self.assertTrue('K1000000 - students.browser.StudyLevelEditFormPage '
    2807         '- K1000000 - removed: COURSE1 at 200' in logcontent)
     2807        '- K1000000 - level 200 - removed: COURSE1' in logcontent)
    28082808        # They can add the same ticket using the edit page directly.
    28092809        # We can do the same by adding the course on the manage page directly
     
    28152815        logcontent = open(logfile).read()
    28162816        self.assertTrue('K1000000 - students.browser.StudyLevelEditFormPage - '
    2817             'K1000000 - added: COURSE1|200|2004' in logcontent)
     2817            'K1000000 - level 200 - added: COURSE1|200|2004' in logcontent)
    28182818        # Course list can be registered
    28192819        self.browser.getControl("Register course list").click()
     
    28722872        self.assertTrue(
    28732873            'K1000000 - students.browser.StudyLevelEditFormPage - '
    2874             'K1000000 - course tickets invalidated: COURSE1'
     2874            'K1000000 - level 100 - course tickets invalidated: COURSE1'
    28752875            in logcontent)
    28762876        return
Note: See TracChangeset for help on using the changeset viewer.