[WIP] start writing some simple tests for portal_crm

bzr revid: abo@openerp.com-20120928174109-q8z9w71oj27n0s56
This commit is contained in:
Antonin Bourguignon
2012-09-28 19:41:09 +02:00
parent 9485587f1d
commit 3a3e5c826c
2 changed files with 16 additions and 1 deletions
+4 -1
View File
@@ -27,11 +27,14 @@
'complexity': 'easy',
'description': """
This module adds a contact page (with a contact form creating a lead when submitted) to your portal if crm and portal are installed.
====================================================================================================================================
====================================================================================================================================
""",
'author': 'OpenERP SA',
'depends': ['crm','portal'],
'data': ['wizard/contact_view.xml'],
'test': [
'test/submit_contact_form.yml',
],
'installable': True,
'auto_install': True,
'category': 'Hidden',
@@ -0,0 +1,12 @@
-
As a portal user, I fill in the contact form and submit it
-
!python {model: portal_crm.crm_contact_us}: |
values = {
'name': 'Need information about your products',
'partner_name': 'Mr. John Doe',
'email_from': 'mister@john.doe',
'phone': '+32 444 11 22 33',
'description': 'Dear Sir or Madam, could you get back to me asap ? Regards.'
}
self.create(cr, ref("portal.demo_user0"), values, context=context)