Community mailing list archives

New API in YAML tests

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

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

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

So, have any of you done this?


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