Ignore:
Timestamp:
21 Nov 2012, 22:37:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Rework logging of batch processing. Remove redundant text but add name of import file.

File:
1 edited

Legend:

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

    r9467 r9706  
    666666        # Logging message from updateEntry,
    667667        self.assertTrue(
    668             'INFO - system - K1000000 - Study level '
    669             'updated: level=100, level_verdict=C, level_session=2009'
     668            'INFO - system - StudentStudyLevel Processor - '
     669            'sample_studylevel_data - K1000000 - updated: '
     670            'level=100, level_verdict=C, level_session=2009'
    670671            in logcontent)
    671672
     
    788789        self.assertEqual(courseticket.semester, 1)
    789790        shutil.rmtree(os.path.dirname(fin_file))
    790 
    791791        logcontent = open(self.logfile).read()
    792792        # Logging message from updateEntry,
    793793        self.assertTrue(
    794             'INFO - system - K1000000 - Course ticket in 100 updated: code=COURSE1, '
     794            'INFO - system - CourseTicket Processor - '
     795            'sample_courseticket_data - K1000000 - 100 - '
     796            'updated: code=COURSE1, '
    795797            'mandatory=False, score=3'
    796798            in logcontent)
     
    968970        # Logging message from updateEntry
    969971        self.assertTrue(
    970             'INFO - system - K1000001 - Payment ticket updated: '
     972            'INFO - system - Student Payment Processor - '
     973            'sample_payment_data - K1000001 - updated: '
    971974            'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, '
    972975            'p_category=schoolfee, amount_auth=19500.0, p_current=True, '
     
    975978            in logcontent)
    976979        self.assertTrue(
    977             'INFO - system - K1000001 - Payment ticket updated: '
     980            'INFO - system - Student Payment Processor - '
     981            'sample_payment_data - K1000001 - updated: '
    978982            'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, '
    979983            'p_category=schoolfee, amount_auth=19500.6, p_current=True, '
     
    10891093        logcontent = open(self.logfile).read()
    10901094        self.assertMatches(
    1091             '... INFO - system - X666666 - Study course updated: current_verdict=0...',
     1095            '... INFO - system - Verdict Processor (special processor, '
     1096            'update only) - sample_verdict_data - X666666 - '
     1097            'updated: current_verdict=0...',
    10921098            logcontent)
    10931099        self.assertMatches(
Note: See TracChangeset for help on using the changeset viewer.