Ignore:
Timestamp:
13 Dec 2014, 08:58:43 (10 years ago)
Author:
Henrik Bettermann
Message:

Let's take the 'last transition date' from the history. Saving the date is redundant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py

    r12146 r12210  
    161161        self.assertEqual(
    162162            result,
    163             'class_name,document_id,history,last_transition_date,state,title,user_id\r\n'
    164             'CustomerSampleDocument,d101,[],,,,\r\n'
     163            'class_name,document_id,history,state,title,user_id\r\n'
     164            'CustomerSampleDocument,d101,[],,,\r\n'
    165165            )
    166166        return
     
    175175        result = open(self.outfile, 'rb').read()
    176176        self.assertTrue(
    177             'class_name,document_id,history,last_transition_date,state,title,user_id\r\n'
     177            'class_name,document_id,history,state,title,user_id\r\n'
    178178            in result
    179179            )
    180180        self.assertMatches(
    181181            '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - '
    182             'Document created by system\'],2014-11-25 06:57:24.990308#,'
     182            'Document created by system\'],'
    183183            'verified,My Document,A111111...',
    184184            result
     
    194194        result = open(self.outfile, 'rb').read()
    195195        self.assertTrue(
    196             'class_name,document_id,history,last_transition_date,state,title,user_id\r\n'
     196            'class_name,document_id,history,state,title,user_id\r\n'
    197197            in result)
    198198        self.assertMatches(
    199199            '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - '
    200             'Document created by system\'],2014-11-25 06:57:24.990308#,'
     200            'Document created by system\'],'
    201201            'verified,My Document,A111111...',
    202202            result
     
    212212        result = open(self.outfile, 'rb').read()
    213213        self.assertTrue(
    214             'class_name,document_id,history,last_transition_date,state,title,user_id\r\n'
     214            'class_name,document_id,history,state,title,user_id\r\n'
    215215            in result)
    216216        self.assertMatches(
    217217            '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - '
    218             'Document created by system\'],2014-11-25 06:57:24.990308#,'
     218            'Document created by system\'],'
    219219            'verified,My Document,A111111...',
    220220            result
     
    254254            result,
    255255            'class_name,contract_category,contract_id,document_object,'
    256             'history,last_product_id,last_transition_date,'
     256            'history,last_product_id,'
    257257            'product_object,state,title\r\n'
    258258
    259             'SampleContract,sample,c101,,[],,,,,\r\n'
     259            'SampleContract,sample,c101,,[],,,,\r\n'
    260260            )
    261261        return
     
    270270        self.assertMatches(
    271271            'class_name,contract_category,contract_id,document_object,'
    272             'history,last_product_id,last_transition_date,'
     272            'history,last_product_id,'
    273273            'product_object,state,title\r\n'
    274274
    275275            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    276276            'Contract record created by system\'],,'
    277             '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
     277            'SAM,created,My Contract\r\n',
    278278            result
    279279            )
     
    289289        self.assertMatches(
    290290            'class_name,contract_category,contract_id,document_object,'
    291             'history,last_product_id,last_transition_date,'
     291            'history,last_product_id,'
    292292            'product_object,state,title\r\n'
    293293
    294294            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    295295            'Contract record created by system\'],,'
    296             '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
     296            'SAM,created,My Contract\r\n',
    297297            result
    298298            )
     
    308308        self.assertMatches(
    309309            'class_name,contract_category,contract_id,document_object,'
    310             'history,last_product_id,last_transition_date,'
     310            'history,last_product_id,'
    311311            'product_object,state,title\r\n'
    312312
    313313            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    314314            'Contract record created by system\'],,'
    315             '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
    316             result
    317             )
    318         return
    319 
     315            'SAM,created,My Contract\r\n',
     316            result
     317            )
     318        return
     319
Note: See TracChangeset for help on using the changeset viewer.