Ignore:
Timestamp:
20 Jan 2015, 17:31:11 (10 years ago)
Author:
Henrik Bettermann
Message:

Add interface and page for editing official use data. Adjust exporter.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
Files:
2 edited

Legend:

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

    r12462 r12500  
    12151215        self.assertEqual(contract.state, 'approved')
    12161216
     1217        # Even in state approved the official use data can be edited
     1218        self.browser.open(self.contracts_path + '/%s/index' % conid)
     1219        self.browser.getLink("Manage official data").click()
     1220        self.browser.getControl(name="form.comment").value = u'Nice place'
     1221        self.browser.getControl("Save").click()
     1222        self.assertEqual(contract.comment, 'Nice place')
     1223        self.assertTrue('Form has been saved.' in self.browser.contents)
     1224
    12171225        # Contracts can be removed
    12181226        self.browser.getLink("Contracts").click()
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py

    r12363 r12500  
    255255        self.assertEqual(
    256256            result,
    257             'class_name,contract_category,contract_id,document_object,'
     257            'class_name,comment,contract_category,contract_id,document_object,'
    258258            'history,last_product_id,'
    259259            'product_object,product_options,state,tc_dict,title,user_id\r\n'
    260260
    261             'SampleContract,sample,CON1,,[],,,[],,{},,\r\n'
     261            'SampleContract,,sample,CON1,,[],,,[],,{},,\r\n'
    262262            )
    263263        return
     
    271271        result = open(self.outfile, 'rb').read()
    272272        self.assertMatches(
    273             'class_name,contract_category,contract_id,document_object,'
     273            'class_name,comment,contract_category,contract_id,document_object,'
    274274            'history,last_product_id,'
    275275            'product_object,product_options,state,tc_dict,title,user_id\r\n'
    276276
    277             'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
     277            'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
    278278            'Contract created by system\'],,'
    279279            'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",'
     
    291291        result = open(self.outfile, 'rb').read()
    292292        self.assertMatches(
    293             'class_name,contract_category,contract_id,document_object,'
     293            'class_name,comment,contract_category,contract_id,document_object,'
    294294            'history,last_product_id,'
    295295            'product_object,product_options,state,tc_dict,title,user_id\r\n'
    296296
    297             'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
     297            'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
    298298            'Contract created by system\'],,'
    299299            'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",'
     
    311311        result = open(self.outfile, 'rb').read()
    312312        self.assertMatches(
    313             'class_name,contract_category,contract_id,document_object,'
     313            'class_name,comment,contract_category,contract_id,document_object,'
    314314            'history,last_product_id,'
    315315            'product_object,product_options,state,tc_dict,title,user_id\r\n'
    316316
    317             'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
     317            'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '
    318318            'Contract created by system\'],,'
    319319            'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",'
Note: See TracChangeset for help on using the changeset viewer.