Changeset 12387 for main


Ignore:
Timestamp:
3 Jan 2015, 20:45:49 (10 years ago)
Author:
Henrik Bettermann
Message:

Make contract_category custimizable in tests.

File:
1 edited

Legend:

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

    r12386 r12387  
    8383    layer = FunctionalLayer
    8484
     85    # This property has to be customied in custom packages.
     86    # the sample category might not be available.
     87    @property
     88    def _contract_category(self):
     89        return u'sample'
     90
    8591    def setUp(self):
    8692        super(CustomersFullSetup, self).setUp()
     
    105111        self.product.product_id = u'SAM'
    106112        self.product.title = u'Our Sample Product'
    107         self.product.contract_category = u'sample'
     113        self.product.contract_category = self._contract_category
    108114        self.product.valid_from = date(2015, 12, 4)
    109115        self.product.tc_dict = {'en': u'Hello world'}
Note: See TracChangeset for help on using the changeset viewer.