summaryrefslogtreecommitdiff
path: root/addons/web/tests/test_menu.py
AgeCommit message (Collapse)Author
2018-01-18[IMP] tests: Add the possibility to tag testsChristophe Monniez
Purpose: When running tests, all the tests for the installed/updated files are done. This commit adds a 'tagged' decorator that can be used to tag tests. Combined with a new 'test-tags' CLI option, it adds the ability to filter which tests are executed. For example, @tagged('slow') will add a tag 'slow' to the test. The CLI option 'test-tags="slow"' will only run tests tagged 'slow'. One can use prefixes to select cases with tags. '+' or no prefix means that the tests tagged with this tag are selected for execution. '-' prefix will exclude the tests tagged with this tag. Exclusion takes precedence over inclusion. Also, by default, all Odoo tests cases are tagged 'standard' and with the technical name of the module. This means that when selecting tests with the 'test-tags' parameter, if '-standard' is not specified, all tests tags are going to be executed. When tagging tests, one can remove such automatic tag by prefixing the tag name with '-'. E.g. @tagged('-standard') will remove the standard tag from the test. Another example, if one wants to test the 'sale' module alone, even without adding any 'tagged' decorator thos tests can be selected like that: --test-tags="sale" Tests are selected or deselected using a TagsSelector. When instanciated, a string is passed with comma separated tests selectors like '+slow,-standard'. When the 'check' method is called with a test as argument, it returns True or False if the test has to be executed or not.
2016-08-03[IMP] web: remove void file, replace openerp tags, add license, clean importsfwi-odoo
2015-09-28[IMP] unittest2 > unittestLeonardo Rochael Almeida
The `unittest2` package is simply a backport of `unittest` from the Standard Library of Python 2.7 to previous versions. There is no reason to use it any longer. Closes #6941
2014-10-10[FIX] web: re-enable test_menu.py without the mock-menu testSimon Lejeune
2014-06-27[MERGE] backend front end integrationSimon Lejeune
Render the top-menu (backend menu or frontend editbar) server-side. Use Fontawesome icons (mail, timezone, chat). Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-04-29[REM] removing menu_diRichard Mathot (OpenERP)
bzr revid: rim@openerp.com-20140429135640-84ycqhsdlhmdj268
2013-10-27[IMP] move http layer from openerp-web to openobject-server, convert ↵Antony Lesuisse
controllers to the new route api bzr revid: al@openerp.com-20131027171717-dzqx2264p152lq8y
2013-10-15[FIX] incorrect __exit__ calls in testsXavier Morel
bzr revid: xmo@openerp.com-20131015110814-faz7361z0560xgrm
2013-06-07Put back stuff removed by mergeniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130607103749-7pe6k3vgwudohnxo
2013-06-07merge trunkniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130607085618-quxxm6izqlfnoy1n
2013-06-06Changed to use werkzeug's LocalStackniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130606162020-oemq8eyuxr47a2e1
2013-06-05[REV] revert of previous improvementniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130605092926-dhoumh76dwtl211t
2013-06-04fix unit testsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130604160525-e0qgr814j2g6qhl6
2012-12-12[IMP] menu loading: simplify/optimize menu loading mechanism and ↵Olivier Dony
de-duplicate need_action load, use child_of, skip useless calls, update tests bzr revid: odo@openerp.com-20121212205120-qa8gq86hh6f26bdk
2012-12-11[IMP] cleanup menu method messAntony Lesuisse
do_* were introduce for testing this is not needed anymore bzr revid: al@openerp.com-20121211021338-8s3jqpfraku1tmsj
2012-11-29[MERGE] Sync with trunk.Thibault Delavallée
bzr revid: tde@openerp.com-20121129114105-0akr0d6nji08g750
2012-11-27[IMP] Needaction: couters are not counter with the menu anymore.Thibault Delavallée
Web-side: a call to get_needaction_data is performed to have action counters. Menus are then updated synchronously with this value. bzr revid: tde@openerp.com-20121127142944-m17zo62er5rh2lvg
2012-11-26[REM] EVALPOCALYPSE PART ONEXavier Morel
bzr revid: xmo@openerp.com-20121126105450-0f6xowd3dhj4jmbl
2012-10-11[FIX] web/tests: leftover import errors after removal of standalone web modeOlivier Dony
bzr revid: odo@openerp.com-20121011110410-pzons7v1cqn4dywf
2012-09-10[FIX] integrate web tests into buildbot runner, fix broken testsXavier Morel
* Remove deprecated tests and dead code * Fix usage of mock * Moar fixes bzr revid: xmo@openerp.com-20120910105129-rxh3jqwkewh65rl3