summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorIvan Yelizariev <iel@odoo.com>2021-05-27 12:01:50 +0000
committerVictor Feyens <vfe@odoo.com>2021-05-27 13:35:50 +0000
commitfcc60e219fd024394f8642509a20755f964546b6 (patch)
tree023a34850da7eee25a65b20596d0820f0db471c5 /odoo
parentfd31c9a10f97c92a48d0589a8bbeaf13a641e891 (diff)
[FIX] core: fix formatting issues for --test-tags docs
`./odoo-bin -h` prints unnecessary spaces between sentences. --- task-2431630 Finetuning of #71130 closes odoo/odoo#71331 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/tools/config.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/odoo/tools/config.py b/odoo/tools/config.py
index 44aa742335a..ffada72794b 100644
--- a/odoo/tools/config.py
+++ b/odoo/tools/config.py
@@ -163,23 +163,23 @@ class configmanager(object):
dest='test_enable',
help="Enable unit tests.")
group.add_option("--test-tags", dest="test_tags",
- help="""Comma-separated list of specs to filter which tests to execute. Enable unit tests if set.
- A filter spec has the format: [-][tag][/module][:class][.method]
- The '-' specifies if we want to include or exclude tests matching this spec.
- The tag will match tags added on a class with a @tagged decorator
- (all Test classes have 'standard' and 'at_install' tags
- until explicitly removed, see the decorator documentation).
- '*' will match all tags.
- If tag is omitted on include mode, its value is 'standard'.
- If tag is omitted on exclude mode, its value is '*'.
- The module, class, and method will respectively match the module name, test class name and test method name.
- examples: :TestClass.test_func,/test_module,external
-
- Filtering and executing the tests happens twice: right
- after each module installation/update and at the end
- of the modules loading. At each stage tests are filtered
- by --test-tags specs and additionally by dynamic specs
- 'at_install' and 'post_install' correspondingly.""")
+ help="Comma-separated list of specs to filter which tests to execute. Enable unit tests if set. "
+ "A filter spec has the format: [-][tag][/module][:class][.method] "
+ "The '-' specifies if we want to include or exclude tests matching this spec. "
+ "The tag will match tags added on a class with a @tagged decorator "
+ "(all Test classes have 'standard' and 'at_install' tags "
+ "until explicitly removed, see the decorator documentation). "
+ "'*' will match all tags. "
+ "If tag is omitted on include mode, its value is 'standard'. "
+ "If tag is omitted on exclude mode, its value is '*'. "
+ "The module, class, and method will respectively match the module name, test class name and test method name. "
+ "Example: --test-tags :TestClass.test_func,/test_module,external "
+
+ "Filtering and executing the tests happens twice: right "
+ "after each module installation/update and at the end "
+ "of the modules loading. At each stage tests are filtered "
+ "by --test-tags specs and additionally by dynamic specs "
+ "'at_install' and 'post_install' correspondingly.")
group.add_option("--screencasts", dest="screencasts", action="store", my_default=None,
metavar='DIR',