Creating data directly in tests was done when tests were located in mail module to avoid creating real data or demo. Now that mail tests have their own module we can create demo data and use them in tests. It is simpler to have demo data for things like subtype and email templates to ease understanding and reuse.
24 lines
679 B
Python
24 lines
679 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
{
|
|
'name': 'Mail Tests',
|
|
'version': '1.0',
|
|
'category': 'Hidden',
|
|
'sequence': 9876,
|
|
'summary': 'Mail Tests: performances and tests specific to mail',
|
|
'description': """This module contains tests related to mail. Those are
|
|
contained in a separate module as it contains models used only to perform
|
|
tests independently to functional aspects of other models. """,
|
|
'depends': ['test_performance', 'mail'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
],
|
|
'demo': [
|
|
'data/demo.xml',
|
|
'data/subtype_demo.xml',
|
|
'data/template_demo.xml',
|
|
],
|
|
'installable': True,
|
|
'application': False,
|
|
}
|