summaryrefslogtreecommitdiff
path: root/doc/reference/testing.rst
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-11-05 15:17:42 +0000
committerVictor Feyens <vfe@odoo.com>2019-11-05 15:17:42 +0000
commit0a3ca7df7a11652cfc86d398a91b098d516ed476 (patch)
treee7a8813bd119e0a21fea2ffd2c1ca74231655cf6 /doc/reference/testing.rst
parent9e8d52ebaaabbe6371dea99730ca21b1c59fd32c (diff)
[FIX] doc: fix sphinx warnings
* Since https://github.com/odoo/odoo/commit/8d5da6e4be05428f3243f92c0464d3c1f6a43873#diff-e07cbcffb9fb7b2eafd1ace3c4b1626a, post_install and at_install test tags have been removed. * minor warnings in javascript reference. closes odoo/odoo#39817 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'doc/reference/testing.rst')
-rw-r--r--doc/reference/testing.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst
index def3e9f62ad..db447e0f41a 100644
--- a/doc/reference/testing.rst
+++ b/doc/reference/testing.rst
@@ -62,11 +62,16 @@ related to testing Odoo content (modules, mainly):
By default, tests are run once right after the corresponding module has been
installed. Test cases can also be configured to run after all modules have
-been installed, and not run right after the module installation:
+been installed, and not run right after the module installation::
-.. autofunction:: odoo.tests.common.at_install
+ # coding: utf-8
+ from odoo.tests import HttpCase, tagged
-.. autofunction:: odoo.tests.common.post_install
+ # This test should only be executed after all modules have been installed.
+ @tagged('-at_install', 'post_install')
+ class WebsiteVisitorTests(HttpCase):
+ def test_create_visitor_on_tracked_page(self):
+ Page = self.env['website.page']
The most common situation is to use
:class:`~odoo.tests.common.TransactionCase` and test a property of a model