Ignore:
Timestamp:
3 Jan 2015, 21:41:55 (10 years ago)
Author:
Henrik Bettermann
Message:

Provide CON_CATS_DICT for customization.

Use correct factories in tests.

Location:
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py

    r12382 r12389  
    4848    layer = FunctionalLayer
    4949
     50    def setup_customizable_params(self):
     51        self._contract_category = u'sample'
     52        return
     53
    5054    def setup_for_export(self):
    5155        customer = createObject(u'waeup.Customer')
     
    213217    layer = FunctionalLayer
    214218
     219    def setup_customizable_params(self):
     220        self._contract_category = u'sample'
     221        self._document_factory = 'waeup.SkeletonCustomerDocument'
     222        self._contract_factory = 'waeup.SkeletonContract'
     223        return
     224
    215225    def test_manage_upload_sample_file(self):
    216226        # Managers can upload a file via the DocumentManageFormPage
     
    289299
    290300    layer = FunctionalLayer
     301
     302    def setup_customizable_params(self):
     303        self._contract_category = u'sample'
     304        self._document_factory = 'waeup.SkeletonCustomerDocument'
     305        self._contract_factory = 'waeup.SkeletonContract'
     306        return
    291307
    292308    def test_view_slips(self):
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/utils/utils.py

    r12381 r12389  
    4545        }
    4646
     47    CON_CATS_DICT = {
     48        'sample': 'Sample Category',
     49        'license': 'License',
     50        'no': 'no contract',
     51        }
     52
    4753    PREFERRED_LANGUAGES_DICT = {
    4854        'en':(1, u'English'),
Note: See TracChangeset for help on using the changeset viewer.