From 68a59716361ac4cc018c97bf062fc7742de34e62 Mon Sep 17 00:00:00 2001 From: "atp (Open ERP)" Date: Thu, 22 Apr 2010 17:37:26 +0530 Subject: [PATCH] [IMP]: crm: Improvement in yaml test case bzr revid: atp@tinyerp.co.in-20100422120726-myalsad8nbaahdql --- addons/crm/test/test_crm_meeting.yml | 6 +++--- addons/crm/test/test_crm_opportunity.yml | 2 +- addons/crm/test/test_crm_phonecall.yml | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/addons/crm/test/test_crm_meeting.yml b/addons/crm/test/test_crm_meeting.yml index 55db5e84cc7..e231115c539 100644 --- a/addons/crm/test/test_crm_meeting.yml +++ b/addons/crm/test/test_crm_meeting.yml @@ -1,7 +1,7 @@ - | Now I will test Meetings which may be customer meeting or phonecall meeting or internal Meeting. -- +- | I start by creating a new Meeting. - !record {model: crm.meeting, id: crm_meeting_regardingpresentation0}: @@ -23,7 +23,7 @@ - state == "draft" - | I can set reminder on meeting if I put reminder "40 minutes before" -- +- | For that, I first create alarm. - !record {model: res.alarm, id: res_alarm_minituesbefore0}: @@ -51,7 +51,7 @@ - !python {model: crm.meeting}: | self.fields_view_get(cr, uid, False, 'calendar', context) -- +- | I will search for one of the recurrent event and count the number of meeting. - !python {model: crm.meeting}: | diff --git a/addons/crm/test/test_crm_opportunity.yml b/addons/crm/test/test_crm_opportunity.yml index 4fd0ddace95..d7118dd0c90 100644 --- a/addons/crm/test/test_crm_opportunity.yml +++ b/addons/crm/test/test_crm_opportunity.yml @@ -68,7 +68,7 @@ !python {model: crm.phonecall}: | ids = self.search(cr, uid, [('name', '=', 'ABC FUEL CO 829264 - 10002 units')]) assert len(ids) -- +- | I can see phonecall record after click on "Schedule call" wizard. - !record {model: crm.phonecall, id: crm_phonecall_abcfuelcounits0}: diff --git a/addons/crm/test/test_crm_phonecall.yml b/addons/crm/test/test_crm_phonecall.yml index 7e6ed56abc5..feb87e0a879 100644 --- a/addons/crm/test/test_crm_phonecall.yml +++ b/addons/crm/test/test_crm_phonecall.yml @@ -49,7 +49,7 @@ !python {model: crm.phonecall}: | self.action_make_meeting(cr, uid, [ref('crm_phonecall_interviewcall0')]) -- +- | I can see that Meeting's calendar view is shown. then I click on the date on which I want schedule meeting. I fill proper data for that meeting and save it @@ -69,7 +69,7 @@ - #This is not working for yaml -- +- | I can jump to this meeting by "Meetings" shortcut from my phonecall's form view - @@ -84,6 +84,8 @@ name: Interview call section_id: crm.section_sales_department user_id: base.user_root +- | + I click on "Schedule" button of this wizard. - !python {model: crm.phonecall2phonecall}: | self.action_apply(cr, uid, [ref('crm_phonecall2phonecall_interviewcall0')], {'active_id': ref('crm_phonecall_interviewcall0')})