Ignore:
Timestamp:
18 Aug 2023, 04:24:57 (15 months ago)
Author:
Henrik Bettermann
Message:

Add logging messages before after creating students from applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r16545 r17550  
    304304        self.assertFalse('Failed records' in self.browser.contents)
    305305        self.assertTrue('Successfully created records' in self.browser.contents)
     306        logcontent = open(logfile).read()
     307        self.assertTrue('applicants.browser.CreateAllStudentsPage - started in app2021'
     308        in logcontent)
     309        self.assertTrue('%s - Student record created (K1000000)' % self.applicant.applicant_id
     310        in logcontent)
     311        self.assertTrue('applicants.browser.CreateAllStudentsPage - created in app2021: %s' % self.applicant.applicant_id
     312        in logcontent)
    306313
    307314    def test_hidden_batch_copying_all(self):
     
    321328        self.browser.open(self.root_path + '/createallstudents')
    322329        self.assertTrue('Successfully created records:' in self.browser.contents)
     330        logcontent = open(logfile).read()
     331        self.assertTrue('applicants.browser.CreateAllStudentsPage - started in applicants'
     332        in logcontent)
     333        self.assertTrue('%s - Student record created (K1000000)' % self.applicant.applicant_id
     334        in logcontent)
     335        self.assertTrue('applicants.browser.CreateAllStudentsPage - created in applicants: %s' % self.applicant.applicant_id
     336        in logcontent)
    323337
    324338    def test_copier_wo_passport(self):
Note: See TracChangeset for help on using the changeset viewer.