diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-10-11 08:41:33 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-10-18 13:56:56 +0000 |
| commit | 7429c61dfcd2dfda72655e33504159a637227eef (patch) | |
| tree | cad4480d99624275c4ceb559e06fcf68e49aa4b6 /addons/test_mail | |
| parent | 5a552f0302986e69317eb415b7e89e33c3874940 (diff) | |
[IMP] tests: add an helper in odoo tests in order to quickly create test users
Following great @odony review we decided to add a helper method allowing
to quickly create users in tests in a one-liner. It will allow to remove a
lot of duplicate code in various test classes and methods.
This method basically requires a login and a comma separated list of user
groups xml ids. Kwargs are supported to further customize the created
user. A custom context can be given to the creation as user creation in
odoo can support several options within standard addons, like mailing or
signup options.
Next commits will propagate the use of this helper in some test classes
notably in mail, hr and mass mailing.
This commit is linked to task ID 1889703 and PR #27526.
Diffstat (limited to 'addons/test_mail')
0 files changed, 0 insertions, 0 deletions
