Community mailing list archives

community@mail.odoo.com

New API in YAML tests

by
Torvald Baade Bringsvor, Torvald B. Bringsvor
- 09/24/2014 15:58:50
Hi

Have any of you had success using the new API in YAML tests?

I tried to do something like this:

!python {model: mymodel}: |
     self # this is what the documentation said you should do to get new api
     self.store_data(context)

The store_data accesses self.env, which fails since you don't have the attribute.

So, have any of you done this?

-Torvald


--
Torvald Baade Bringsvor
Bringsvor Consulting AS - Odoo (formerly OpenERP) implementation partner