Ignore:
Timestamp:
20 Dec 2014, 15:59:04 (10 years ago)
Author:
Henrik Bettermann
Message:

Use a baseclass for document batch processors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_batching.py

    r12178 r12267  
    188188            ['name', 'dinoports', 'owner', 'taxpayer'],
    189189            mode='create', user='Bob', logger=self.logger)
    190         num_succ, num_fail, finished_path, failed_path = result
     190        num, num_fail, finished_path, failed_path = result
    191191        self.resultpath = [finished_path, failed_path]
    192         assert num_succ == 4
     192        assert num == 4
    193193        assert num_fail == 0
    194194        assert finished_path.endswith('/newcomers.finished.csv')
     
    201201            ['name', 'dinoports', 'owner', 'taxpayer'],
    202202            mode='create', user='Bob', logger=self.logger)
    203         num_succ, num_fail, finished_path, failed_path = result
     203        num, num_fail, finished_path, failed_path = result
    204204        self.resultpath = [finished_path, failed_path]
    205205        assert len(self.stoneville) == 4
     
    215215            ['name', 'dinoports', 'owner', 'taxpayer'],
    216216            mode='create', user='Bob', logger=self.logger)
    217         num_succ, num_fail, finished_path, failed_path = result
     217        num, num_fail, finished_path, failed_path = result
    218218        self.resultpath = [finished_path, failed_path]
    219219        assert isinstance(self.stoneville['Barneys Home'].dinoports, int)
     
    231231            ['name', 'dinoports', 'owner', 'taxpayer'],
    232232            mode='create', user='Bob', logger=self.logger)
    233         num_succ, num_fail, finished_path, failed_path = result
     233        num, num_fail, finished_path, failed_path = result
    234234        self.resultpath = [finished_path, failed_path]
    235235        log_contents = open(self.logfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.