Ignore:
Timestamp:
27 May 2019, 10:51:04 (5 years ago)
Author:
Henrik Bettermann
Message:

We check if there exists a certificate course in the certificate
container which refers to course ticket to be added. If such an object does
not exist, students and managers will be prevented from registering
the corresponding course.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r15428 r15429  
    13381338        self.student['studycourse']['200']['COURSE1'].outstanding = True
    13391339        self.browser.getControl("Add course ticket").click()
    1340         self.assertMatches(
    1341             '...Successfully added COURSE2...', self.browser.contents)
     1340        # Corresponding certificate course is missing
     1341        self.assertTrue(
     1342            'COURSE2 is not part of the CERT1 curriculum.'
     1343            in self.browser.contents)
     1344        self.app['faculties']['fac1']['dep1'].certificates[
     1345            'CERT1'].addCertCourse(self.course, level=100)
     1346        self.browser.getControl("Add course ticket").click()
     1347        self.assertTrue(
     1348            'Successfully added COURSE2' in self.browser.contents)
    13421349        return
    13431350
Note: See TracChangeset for help on using the changeset viewer.