Changeset 12487 for main/waeup.ikoba/trunk/src/waeup/ikoba
- Timestamp:
- 18 Jan 2015, 15:59:43 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/interfaces.py
r12486 r12487 376 376 """ 377 377 378 product_object = schema.Choice(379 title = _(u'Product'),380 source = ConCatProductSource(),381 required = True,382 )383 384 378 document_object = schema.Choice( 385 379 title = _(u'Document'), -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/interfaces.py
r12361 r12487 67 67 title = _(u'Contract Category'), 68 68 source = ConCatSource(), 69 default = u'license',70 69 required = True, 71 70 ) -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_batching.py
r12358 r12487 59 59 layer = FunctionalLayer 60 60 61 _contract_category = u'license' 62 61 63 def setUp(self): 62 64 super(ProductImportExportSetup, self).setUp() … … 83 85 product = Product() 84 86 product.product_id = u'LIC' 87 product.contract_category = self._contract_category 85 88 options = ProductOption() 86 89 options.title = u'Base Fee' -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_browser.py
r12361 r12487 100 100 NotIdValue, setattr, self.product, 'product_id', u'id with spaces') 101 101 self.product.title = u'Our License' 102 self.product.contract_category = u'license' 102 103 self.product.valid_from = date(2015, 12, 4) 103 104 self.app['products'].addProduct(self.product) … … 157 158 self.browser.getControl(name="form.product_id").value = 'bob' 158 159 self.browser.getControl(name="form.title").value = 'My product' 160 self.browser.getControl(name="form.contract_category").value = ['license'] 159 161 self.browser.getControl("Create product").click() 160 162 self.assertTrue('Product bob added' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.