summaryrefslogtreecommitdiff
path: root/odoo/tests/common.py
diff options
context:
space:
mode:
authorIvan Yelizariev <iel@odoo.com>2021-05-21 09:39:51 +0000
committerIvan Yelizariev <iel@odoo.com>2021-05-27 07:42:59 +0000
commite4bf1e7dca2a9ef6dabf3f201d086ae77ff993d9 (patch)
treeb5ade04900456303501af05c8c9c0765d012fc1d /odoo/tests/common.py
parente5bd37808e023e17a819de277c50d03825c44191 (diff)
[IMP] core: clarify docs about config --test-tags
Technical name is not added to test_tags since https://github.com/odoo/odoo/commit/95b4f2ab4b5698ab3a28c9c35ac8da6fb6def983 at_install tag is added by default since introducing @tagged decorator: https://github.com/odoo/odoo/commit/b356b190338e3ee032b9e3a7f670f76468965006 Clarify how special tags at_install/post_install work. Also, add dots for @tagged doc, because otherwise we have a mess in sphinx docs. --- task-2431630 closes odoo/odoo#71130 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'odoo/tests/common.py')
-rw-r--r--odoo/tests/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py
index dda4eac078e..cc9a3c2b848 100644
--- a/odoo/tests/common.py
+++ b/odoo/tests/common.py
@@ -2465,11 +2465,11 @@ def _get_node(view, f, *arg):
def tagged(*tags):
"""
- A decorator to tag BaseCase objects
- Tags are stored in a set that can be accessed from a 'test_tags' attribute
- A tag prefixed by '-' will remove the tag e.g. to remove the 'standard' tag
+ A decorator to tag BaseCase objects.
+ Tags are stored in a set that can be accessed from a 'test_tags' attribute.
+ A tag prefixed by '-' will remove the tag e.g. to remove the 'standard' tag.
By default, all Test classes from odoo.tests.common have a test_tags
- attribute that defaults to 'standard' and also the module technical name
+ attribute that defaults to 'standard' and 'at_install'.
When using class inheritance, the tags are NOT inherited.
"""
def tags_decorator(obj):