this will be run inside OpenERP like code in modules and you can use the full openerp api. You can only load stuff from OpenERP library inside functions, because the library is added to sys.path dynamically.

OpenERP API

As pytest-oerp is running inside OpenERP everything you need to do that can be done inside a module can be done in a pytest-oerp test. The usual cr, uid attributes are oerp.cr and 1 (that means the first user, usually admin). oerp also has a pool attribute that is useful.

Todo

There are a lot of polish and features that should be done but a tentative list would be: