About YAML tests

Odoo also supports a second type of tests, described using YAML data files. Originally all tests used YAML, until more recently the unittest based tests were introduced. While both are supported, and many core addons still include YAML tests, the official documentation currently does not mention the YAML tests. The last documentation on it is available at https://doc.odoo.com/v6.0/contribute/15_guidelines/coding_guidelines_testing/ .

Developers with a Python background will probably feel more at home with unittest, since it is a standard Python feature, while YAML tests are designed with Odoo-specific conventions. The trend clearly is to prefer unittest over YAML, and YAML support can be expected to be dropped in future versions. ...

Get Odoo 10 Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.