Improve the statments
[odoo/odoo.git] / addons / crm_fundraising / test / test_crm_fund.yml
1 - |
2   I start test Fund Raising  which contain information about Donation or charity
3   given by user.
4 - |
5   I start by creating new Funds entry for donation for books to poor school children
6   with cost 500000.00 and category as "Learning And Education"
7   I make payment by Cheque so I make sure that the mode on fund is selected as cheque.
8 -
9   !record {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
10     categ_id: crm_fundraising.categ_fund2
11     email_from: info@balmerinc.be
12     name: Donation for books to poor school children
13     partner_address_id: base.res_partner_address_1
14     partner_id: base.res_partner_9
15     planned_cost: 500000.0
16     section_id: crm.section_sales_department
17     type_id: crm_fundraising.type_fund2
18 - |
19   I check that the Funds  is in 'draft' state.
20 -
21   !assert {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
22     - state == 'draft'
23 - |
24   I open Funds by click on "Open" button.
25 -
26   !python {model: crm.fundraising}: |
27     self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])
28 - |
29   I can close Funds by click on "Done" button.
30 -
31   !python {model: crm.fundraising}: |
32     self.case_close(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])