Commit Graph

24 Commits

Author SHA1 Message Date
Christophe Simonis 457d661ae0 [FIX] test: correct Mock of search_read
[IMP] search_read: build order index using dict comprehension

bzr revid: chs@openerp.com-20140123170836-4qu0ei6zucaprwxs
2014-01-23 18:08:36 +01:00
Christophe Simonis e5736828f9 [REVERT] revert commit fme@openerp.com-20130418171750-7oldgiewo1eewxk7: do not break stable API !!!
bzr revid: chs@openerp.com-20130423124151-h025b891xp77flg3
2013-04-23 14:41:51 +02:00
Xavier Morel db4d08e3a9 [FIX] Extension of controller in-place with explicit spec of same _cp_path
When extending a controller in-place (e.g. A(Controller), B(A)) and
providing the exact same _cp_path as parent (no-op) execution path
would go into handler for _cp_path overwriting and raise an assertion
error for overwriting of existing controller.

Except this is allowed (if ugly) pattern, so warn & ignore behavior
(it is harmless).

bzr revid: xmo@openerp.com-20130418092405-wrmmrd648b9koefu
2013-04-18 11:24:05 +02:00
Xavier Morel 3df2a146cd [FIX] logging capture when testing embedded in server, handler hooks are more complex than through oe
bzr revid: xmo@openerp.com-20130403135849-ufnn2a1hdu938p7p
2013-04-03 15:58:49 +02:00
Xavier Morel ebc1cb227d [IMP] make logger not propagate when captured
bzr revid: xmo@openerp.com-20130403123442-p96cj73lwtxa2sek
2013-04-03 14:34:42 +02:00
Xavier Morel cfcda2b032 [IMP] reduce scope of captured logger
bzr revid: xmo@openerp.com-20130403121039-qdq6tz012uc7lgdh
2013-04-03 14:10:39 +02:00
Xavier Morel 1f421e7928 [FIX] redefinition and in-place extension scenarios for controllers
bzr revid: xmo@openerp.com-20130402143217-pfe2288iodw9r81g
2013-04-02 16:32:17 +02:00
Xavier Morel 23904b523a [TEST] test normal inheritance of controllers
bzr revid: xmo@openerp.com-20130329141645-m70aitx3kv74yo97
2013-03-29 15:16:45 +01:00
Xavier Morel 17eaf9e92a [TESTS] add dispatcher tests
bzr revid: xmo@openerp.com-20130329140329-a78lqt87str80v99
2013-03-29 15:03:29 +01:00
Olivier Dony 55419f063c [IMP] menu loading: simplify/optimize menu loading mechanism and de-duplicate need_action load, use child_of, skip useless calls, update tests
bzr revid: odo@openerp.com-20121212205120-qa8gq86hh6f26bdk
2012-12-12 21:51:20 +01:00
Antony Lesuisse f83bfeff0b [IMP] cleanup menu method mess
do_* were introduce for testing this is not needed anymore

bzr revid: al@openerp.com-20121211021338-8s3jqpfraku1tmsj
2012-12-11 03:13:38 +01:00
Thibault Delavallée 1ca5e68b1f [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121130093732-i8y10ayjqiaq5t7p
bzr revid: tde@openerp.com-20121204142854-pauouyapnw7z8zwj
bzr revid: tde@openerp.com-20121205101544-k4ui6thr0ibzw0vx
bzr revid: tde@openerp.com-20121210125423-81wbh4af9sxdqjki
2012-12-10 13:54:23 +01:00
Antony Lesuisse 35b52c5b65 [FIX] test_js typo
bzr revid: al@openerp.com-20121209043015-curop98b936em7bn
2012-12-09 05:30:15 +01:00
Antony Lesuisse eaf4780bd5 [FIX] runbot use db_password for admin_passowrd
bzr revid: al@openerp.com-20121209040103-65om8phyuj71u167
2012-12-09 05:01:03 +01:00
Antony Lesuisse 4040b8caa6 [IMP] testjs command
To tun the tests:

  createdb t
  /server/openerp-server --addons-path=addons,web/addons server -d t -i web_tests_demo

Once the server is ready, run, in an other shell:

  /server/openerp-server --addons-path=addons,web/addons testjs

bzr revid: al@openerp.com-20121209024810-cdi2s9ftr97x8l5p
2012-12-09 03:48:10 +01:00
Thibault Delavallée 7461f88473 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121129114105-0akr0d6nji08g750
2012-11-29 12:41:05 +01:00
Thibault Delavallée c5d3036674 [IMP] Needaction: couters are not counter with the menu anymore.
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-27 15:29:44 +01:00
Xavier Morel 4a5cb1ebc4 [REM] EVALPOCALYPSE PART 2: no more python-side eval
trigger an error if a nonliteral context is pushed to the server (through a new object_hook)

bzr revid: xmo@openerp.com-20121126140525-ni2x5m56upss610b
2012-11-26 15:05:25 +01:00
Xavier Morel eb9a1c7d55 [REM] EVALPOCALYPSE PART ONE
bzr revid: xmo@openerp.com-20121126105450-0f6xowd3dhj4jmbl
2012-11-26 11:54:50 +01:00
Xavier Morel 8e85f4e0bd [IMP] timeout discipline
* Global timeout significantly increased to correctly handle e.g. db creation and teardown
* Per-test timeout brought back down to 2s

bzr revid: xmo@openerp.com-20121115091501-ys8opo0ccr3dq29h
2012-11-15 10:15:01 +01:00
Xavier Morel 5040c649c4 [FIX] add JS test integration with unittest/runbot runner
bzr revid: xmo@openerp.com-20121030132106-gggi4vmwjwq4l2mj
2012-10-30 14:21:06 +01:00
Vo Minh Thu ede4edc156 [FIX] web/tests: `import openerp.addons.web` instead of `import web`.
bzr revid: vmt@openerp.com-20121015134918-9ccl265d49qkms4t
2012-10-15 15:49:18 +02:00
Olivier Dony 69fa182342 [FIX] web/tests: leftover import errors after removal of standalone web mode
bzr revid: odo@openerp.com-20121011110410-pzons7v1cqn4dywf
2012-10-11 13:04:10 +02:00
Xavier Morel a933c17e54 [FIX] integrate web tests into buildbot runner, fix broken tests
* Remove deprecated tests and dead code
* Fix usage of mock
* Moar fixes

bzr revid: xmo@openerp.com-20120910105129-rxh3jqwkewh65rl3
2012-09-10 12:51:29 +02:00