Improve the statments
authorDBR (OpenERP) <dbr@tinyerp.com>
Thu, 22 Sep 2011 11:43:25 +0000 (17:13 +0530)
committerDBR (OpenERP) <dbr@tinyerp.com>
Thu, 22 Sep 2011 11:43:25 +0000 (17:13 +0530)
bzr revid: dbr@tinyerp.com-20110922114325-pdaf41uih8gcgrmz

14 files changed:
addons/crm/test/test_crm_lead.yml
addons/crm/test/test_crm_lead_case2.yml
addons/crm/test/test_crm_meeting.yml
addons/crm/test/test_crm_opportunity.yml
addons/crm/test/test_crm_partner2opportunity.yml
addons/crm/test/test_crm_phonecall.yml
addons/crm/test/test_crm_recurrent_meeting_case2.yml
addons/crm/test/test_crm_segmentation.yml
addons/crm/test/test_crm_stage_changes.yml
addons/crm_caldav/test/test_crm_caldav.yml
addons/crm_claim/test/test_crm_claim.yml
addons/crm_fundraising/test/test_crm_fund.yml
addons/crm_partner_assign/test/test_crm_partner_assign.yml
addons/crm_profiling/test/test_crm_profiling.yml

index 1843fc6..92c01b5 100644 (file)
@@ -61,7 +61,7 @@
   !assert {model: crm.lead, id: crm_lead_newcustomer0, string: Lead in open state}:
      - state == "open"
 -
-   Now, Find id for case object.
+   I search id for case object.
 -
    !python {model: crm.case.categ}: |
      self._find_object_id(cr, uid, context)
@@ -76,7 +76,7 @@
      assert action['res_model'] == 'crm.lead2opportunity.partner'
 -
    |
-   Now, select "create a new partner" option in this wizard.
+   I select "create a new partner" option in this wizard.
 -
    !record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_0}:
       action: 'create'
@@ -88,7 +88,7 @@
       self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_0")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
 -
    |
-   Now, select "Link to an existing partner" option in this wizard.
+   I select "Link to an existing partner" option in this wizard.
 -
    !record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_1}:
       action: 'exist'
       self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_1")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
 -
    |
-   Now, select "Do not link to a partner" option in this wizard.
+   I select "Do not link to a partner" option in this wizard.
 -
    !record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_2}:
       action: 'nothing'
index 111f63e..c8712d8 100644 (file)
@@ -70,7 +70,7 @@
     self.on_change_optout(cr, uid, ref("crm_lead_democustomer"), True)
 
 -
-  Now I change the Opt-out to Opt-in to show email receive preference.
+  I change the Opt-out to Opt-in to show email receive preference.
 -
   !python {model: crm.lead}: |
     self.on_change_optin(cr, uid, ref("crm_lead_democustomer"), True)
@@ -85,7 +85,7 @@
   !assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in open state}:
      - state == "open"
 -
-  Now i reset the lead "Demo Customer".
+  I reset the lead "Demo Customer".
 -
     !python {model: crm.lead}: |
       self.case_reset(cr, uid, [ref("crm_lead_democustomer")])
   !assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in Pending state}:
      - state == "pending"
 -
-  Now I Escalate the Lead "Demo Customer" Parent "Sales Team".
+  I Escalate the Lead "Demo Customer" Parent "Sales Team".
 -
     !python {model: crm.lead}: |
       self.case_escalate(cr, uid, [ref("crm_lead_democustomer")])
 -
-  Now I add Internal Note Saying Escalated Reason.
+  I add Internal Note Saying Escalated Reason.
 -
   !record {model: crm.add.note, id: crm_add_note_0}:
     body: Sales Lead Has Been Escalated Due to Some Technical reason to the parent  'Sales
     self.action_add(cr, uid, [ref("crm_add_note_0")], context=context)
 
 -
-  Now I Copying this lead "Demo Customer" to New Lead.
+  I Copying this lead "Demo Customer" to New Lead.
 -
     !python {model: crm.lead}: |
       self.copy(cr, uid, ref("crm_lead_democustomer"))
index 274d9c0..8d851dd 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now I will test Meetings which may be customer meeting or phonecall meeting or
+  I will test Meetings which may be customer meeting or phonecall meeting or
   internal Meeting.
 - |
   I start by creating a new Meeting.
@@ -33,7 +33,7 @@
     trigger_occurs: before
     trigger_related: start
 - |
-  Now I will assign this reminder.
+  I will assign this reminder.
 
 - !python {model: crm.meeting}: |
      self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'alarm_id': ref("res_alarm_minituesbefore0")})
@@ -61,7 +61,7 @@
      assert len(ids) == 10
 
 - |
-  Now If I want to edit meetings information for all occurrence I click on "Edit All" button.
+  If I want to edit meetings information for all occurrence I click on "Edit All" button.
 -
   !python {model: crm.meeting}: |
      self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'edit_all':'True'},context)
index d51b5c8..734a1ca 100644 (file)
@@ -78,7 +78,7 @@
     partner_id:  base.res_partner_9
     section_id: crm.section_sales_department
 - |
-  Now, Merge the opportunities.
+  I Merge the opportunities.
 -
   for that create two opportunities first opportunity 'Test FUEL CO'.
 -
index ea546e7..fe02607 100644 (file)
@@ -7,7 +7,7 @@
     partner_id:  base.res_partner_9
     probability: 0.0
 -
-  Now, click on "Create Opportunity" button of this wizard.
+  I click on "Create Opportunity" button of this wizard.
 -
   !python {model: crm.partner2opportunity}: |
     fields = {
index 4fac9d3..7a9c367 100644 (file)
@@ -7,14 +7,14 @@
     duration: 2.0
     section_id: crm.section_sales_department
 -
-  Now , I select partner by click on "Create a Partner" button.
+  I select partner by click on "Create a Partner" button.
 -
   !record {model: crm.phonecall2partner, id: crm_phonecall2partner_1}:
     action: exist
     partner_id: base.res_partner_9
 
 -
-  Now, click on "Continue" button of this wizard.
+  I click on "Continue" button of this wizard.
 -
   !python {model: crm.phonecall2partner}: |
 
@@ -32,7 +32,7 @@
     planned_revenue: 0.0
     probability: 0.0
 -
-   Now, I click on "Convert" button of this wizard.
+   I click on "Convert" button of this wizard.
 -
   !python {model: crm.phonecall2opportunity}: |
      self.action_apply(cr, uid, [ref("crm_phonecall2opportunity_interviewcall0")], {"active_id": ref("crm_phonecall_interviewcall0")})
index 07b1e9f..b6afeb6 100644 (file)
@@ -21,7 +21,7 @@
      meeting_ids = self.search(cr, uid, [('id', 'in', [ref('crm_meeting_testmeeting0')]),('date','>=','2011-03-13'), ('date_deadline', '<=', '2011-05-13')], context={'virtual_id': True})
      assert len(meeting_ids) == 5, 'Recurrent daily meetings are not created !'
 -
-  Now I create a weekly meeting till a particular end date.
+  I create a weekly meeting till a particular end date.
 -
   !record {model: crm.meeting, id: crm_meeting_reviewcodewithprogrammer0}:
     date: '2011-04-18 11:47:00'
index 191f0bd..5563f1c 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now I will test segmentation which create specific partner categories criteria.
+  I will test segmentation which create specific partner categories criteria.
 -
   I create a new segmentation record.
 -
@@ -10,7 +10,7 @@
     som_interval: 0.0
     sales_purchase_active : True
 -
-  Now, Start the process.
+  I start the process.
 -
   !python {model: crm.segmentation}: |
     self.process_start(cr, uid, [ref("crm_segmentation_id_0")],context)
index c9dcac0..391a328 100644 (file)
@@ -61,7 +61,7 @@
   !python {model: crm.lead}: |
     self.case_mark_lost(cr, uid, [ref('crm_lead_openerppresentation0')])
 -
-  Now I check whether the probability is set according to stage change or not.
+  I check whether the probability is set according to stage change or not.
 -
   !python {model: crm.lead}: |
     opportunity = self.browse(cr, uid, ref('crm_lead_openerppresentation0'))
index b049ead..d286226 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now Create test cases for Sharing meeting with other calendar clients like sunbird.
+  I create test cases for Sharing meeting with other calendar clients like sunbird.
 - |
   I start by creating a new Meeting.
 -
index b1d4e73..9ee1303 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now I check claims which contain customer claim information about document
+  I check claims which contain customer claim information about document
   related problem, product related problem.
 - |
   I start by creating new claims for Damaged product as Value Claims with priority High and specify
index 2e4a6bb..a9207e5 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now I start test Fund Raising  which contain information about Donation or charity
+  I start test Fund Raising  which contain information about Donation or charity
   given by user.
 - |
   I start by creating new Funds entry for donation for books to poor school children
@@ -21,7 +21,7 @@
   !assert {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
     - state == 'draft'
 - |
-  Now I open Funds by click on "Open" button.
+  I open Funds by click on "Open" button.
 -
   !python {model: crm.fundraising}: |
     self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])
index 1b42d50..b214f53 100644 (file)
@@ -62,7 +62,7 @@
     probability: 0.0
     type: opportunity
 -
-  Now change the assigned partner.
+  I change the assigned partner.
 -
   !python {model: crm.lead}: |
     self.onchange_assign_id(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], ref('base.res_partner_desertic_hispafuentes'), context)
@@ -82,7 +82,7 @@
     context.update({'history': 'info', })
     self.on_change_history(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], context.get('history'), context)
 -
-  Now check the case history.
+  I check the case history.
 -
   !python {model: crm.lead.forward.to.partner}: |
     context.update({'history': 'latest', })
     context.update({'history': 'whole', })
     self._get_case_history(cr, uid, context.get('history'), ref('crm_lead_questionnaireonopenerp0'), context=context)
 -
-  Now get lead details.
+  I get lead details.
 -
   !python {model: crm.lead.forward.to.partner}: |
     self.get_lead_details(cr, uid, ref('crm_lead_questionnaireonopenerp0'), context)
 -
-  Now I click on Forward button.
+  I click on Forward button.
 -
   !python {model: crm.lead.forward.to.partner}: |
     from tools import config
index 06388c2..2b70cac 100644 (file)
@@ -1,5 +1,5 @@
 - |
-  Now I check segmentation which allows users to perform segmentation within partners.
+  I check segmentation which allows users to perform segmentation within partners.
 -
   I create a crm profiling question record.
 -
@@ -42,7 +42,7 @@
     data ={'form': {'questionnaire_name': ref('res_partner_john0')}, 'ids': [ref('res_partner_john0')], 'report_type': 'pdf', 'model': 'res.partner', 'id': ref('res_partner_john0')}
     self._questionnaire_compute(cr, uid, data, context)
 - |
-  Now, I start by creating new Questionnaire.
+  I start by creating new Questionnaire.
 -
   !record {model: crm_profiling.questionnaire, id: crm_profiling_questionnaire_basequestionnaire0}:
     description: First questionnaire.