Fabien Meghazi
9874892b97
[FIX] module#get_module_path() does not check the manifest's presence ( closes #13467 )
2016-09-15 10:22:24 +02:00
xmo-odoo
edeb5a8c0f
[FIX] module finder path parameter should be optional
...
According to PEP302, the signature of `Finder.find_module` should be
`find_module(fullname, path=None)`.
Ever since it was introduced in 64ec5f36df
the addons import hook
defines the second parameter as mandatory, which is an issue for
systems relying on the specified behaviour (and not needing to
provide a path) like the stdlib's `pkgutil.find_loader`.
fixes #10670
2016-01-29 10:20:08 +01:00
Samus CTO
7126ae8143
[FIX] mail: prevent sending mail during registry loading
2015-01-28 16:17:43 +01:00
Xavier Morel
9808ca3e31
[IMP] test discovery, documentation, deprecation warnings
...
* document and warn that checks and fast_suite in tests sub-packages are
deprecated and have no effect
* avoid iterating all currently loaded modules when looking for test
modules in a tests sub-package
* replace use of __import__ by importlib
Fixes #3152
2015-01-15 13:28:25 +01:00
Daniel Reis
ec0b770ed3
[IMP] modules: add support for loading module description from README.{md,rst,txt}
...
Showcase the feature by moving auth_ldap's description to README.rst
(Manual rebase of PR #1759 )
2014-09-12 18:31:32 +02:00
Raphael Collet
2ad092b5e5
[ADD] doc: new documentation, with training tutorials, and new scaffolding
2014-08-22 17:51:20 +02:00
Christophe Simonis
e5b0933743
[FIX] data-dir management
...
- sessions are now shared between series.
- use site data dir instead of user data dir if user has no home dir.
- in http and module handling, `data-dir` was used before being
initialized, using the default value instead of user input
(fixes #308 , #904 )
2014-07-07 15:49:24 +02:00
Raphael Collet
cbe2dbb672
[MERGE] new v8 api by rco
...
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Antony Lesuisse
ed34640d3a
[IMP] test display sql query counter
2014-07-01 21:57:55 +02:00
Antony Lesuisse
78e044b5c7
[IMP] test impprove HTTPCase opener
...
Simplify website crawler using the generic HTTPCase opener
2014-06-29 20:04:30 +02:00
Antony Lesuisse
f9e24e1918
[IMP] module loading and tests profiling
...
Add a loglevel 25 to log some INFO to runbot
Add timers for loading and testing
Silence empty test suite
ir_logging use relative pathname, warning this doesnt work for --addons-path modules yet.
2014-06-29 18:58:15 +02:00
Christophe Simonis
4cd699df15
[IMP] js testing
...
- output "error" if any qunit tests failed
- failed js tests are logged as errors
- when running phantomjs considere empty waiting condition or initialisation code as "true"
- lint phantomtest.js file
2014-06-22 11:31:07 +02:00
Fabien Meghazi
faa60474ce
Allow initialize_sys_path() to be called more than once
2014-05-30 18:25:05 +02:00
Fabien Meghazi
0e01164842
Moved get_module_root in openerp.modules.module
2014-05-29 18:23:48 +02:00
Martin Trigaux
5e406734ab
[FIX] module: do not crash in case of not found module
...
bzr revid: mat@openerp.com-20140505121840-f84u36mng3p1gstn
2014-05-05 14:18:40 +02:00
Fabien Meghazi
2eea637227
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140326152307-d0rn3yuzel11457g
2014-03-26 16:23:07 +01:00
Fabien Meghazi
14c3ffcb39
[IMP] Allow openerp.modules.load_information_from_description_file() to take an optional mod_path argument
...
bzr revid: fme@openerp.com-20140319085708-prrs0m4gjvuu4o86
2014-03-19 09:57:08 +01:00
chm@openerp.com
bbca8bd17e
[PATCH] sle
...
bzr revid: chm@openerp.com-20140318122250-22bt2bcfzvxowkvf
2014-03-18 13:22:50 +01:00
Antony Lesuisse
706ef452cb
[IMP] tests prepend modules names when logging
...
bzr revid: al@openerp.com-20140317021317-4o3l1uf2ts62w1di
2014-03-17 03:13:17 +01:00
Antony Lesuisse
38d1ca1ff2
[MERGE] trunk
...
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-27 17:18:19 +01:00
Xavier Morel
d926581bb9
[IMP] slightly improve error message at the end of a module's failed tests
...
bzr revid: xmo@openerp.com-20140218101847-mwsd2zolpze1xdhf
2014-02-18 11:18:47 +01:00
Xavier Morel
33076a34aa
[FIX] run_unit_tests lying about its return value: it only ever returns a bool, never None
...
bzr revid: xmo@openerp.com-20140218095632-r4aq7gnzj4hq9u64
2014-02-18 10:56:32 +01:00
Xavier Morel
71259f09f4
[ADD] hooks to enable/disable tests running during install
...
also add flag for post_install run, but not used yet
bzr revid: xmo@openerp.com-20140218095452-pptez5rlpdez1ttl
2014-02-18 10:54:52 +01:00
Xavier Morel
9a22d42b8b
[IMP] unwrap tests suites during module loading, prepare for storing/filtering attributes
...
bzr revid: xmo@openerp.com-20140217155830-dcacx7qvyf7i0i4m
2014-02-17 16:58:30 +01:00
Xavier Morel
665e2629e2
[FIX] only run test modules called test_*, similar to normal autodiscovery
...
bzr revid: xmo@openerp.com-20140217151521-vyg130iznzojv3e4
2014-02-17 16:15:21 +01:00
Antony Lesuisse
91b1c8472f
[FIX] ir.http testing generate a router including the current module
...
this fix is a dirty hack, the proper fix could be a new 'installing' state in
modules, or an improved registry object.
bzr revid: al@openerp.com-20140217005137-mhrzc4znr8rqe9yu
2014-02-17 01:51:37 +01:00
Xavier Morel
13fc1e885c
[FIX] missed case where sys.modules values can be None
...
bzr revid: xmo@openerp.com-20140214153055-xguhxigsnrzy3ejq
2014-02-14 16:30:55 +01:00
Xavier Morel
a86d7a548d
[IMP] use TestSuite.addTests instead of manually iterating on loadTestsFromModule results
...
bzr revid: xmo@openerp.com-20140214145257-2alo4dvn8rmq3xfj
2014-02-14 15:52:57 +01:00
Xavier Morel
4d32dabdd6
[IMP] replace explicit iteration by listcomp
...
bzr revid: xmo@openerp.com-20140214143932-8nb30mkdxzt96fd5
2014-02-14 15:39:32 +01:00
Xavier Morel
2921fa339d
[REM] unused variable
...
bzr revid: xmo@openerp.com-20140214143724-fcxy9tn8gmodi223
2014-02-14 15:37:24 +01:00
Xavier Morel
8e63677c90
[IMP] fix flow analysis warning, simplify loader code
...
bzr revid: xmo@openerp.com-20140214143549-sezf14rvt0cnm2cr
2014-02-14 15:35:49 +01:00
Xavier Morel
f4d155fce8
[REM] redundant logger initialization
...
bzr revid: xmo@openerp.com-20140214143444-z5ez21g0t61jh81u
2014-02-14 15:34:44 +01:00
Antony Lesuisse
16fd821ed6
[FIX] restore testing after patching runbot
...
bzr revid: al@openerp.com-20140209141912-rh3yedrmjudv8jif
2014-02-09 15:19:12 +01:00
Antony Lesuisse
bd16076431
fix try to fix runbot oe command
...
bzr revid: al@openerp.com-20140209022520-p55nlctjru58ans5
2014-02-09 03:25:20 +01:00
Antony Lesuisse
278ed718e9
new test execution engine
...
remove deprecated zipfile support
add preload_registry option when server is running
allow registries to be used in contruction in test mode
add a rollback test case for http tests
add a phantomjs helper
bzr revid: al@openerp.com-20140209004005-p5pwym4sqc23vw5b
2014-02-09 01:40:05 +01:00
Christophe Simonis
5269664102
[FIX] correct uses of addons_path
...
bzr revid: chs@openerp.com-20140115180313-pqcrfmstci2w21y8
2014-01-15 19:03:13 +01:00
Antony Lesuisse
aa2a854af7
[MERGE] icon moved to description
...
bzr revid: al@openerp.com-20130628150755-2z42ct0p819ajtyq
2013-06-28 17:07:55 +02:00
Vo Minh Thu
7b8f4fe5ee
[REF] tests: use the openerp.tests namespace for test-related logging.
...
bzr revid: vmt@openerp.com-20130327153843-u62ftp74qv01u1ww
2013-03-27 16:38:43 +01:00
Vo Minh Thu
c313b4073a
[REF] logging: removed pseudo log-level TEST.
...
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.
On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.
bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu
b985c7302f
[FIX] openerp namespace: the import hook was still inserting modules in sys.moduls at their shortname.
...
bzr revid: vmt@openerp.com-20130218164839-2qludhn3znpdftq5
2013-02-18 17:48:39 +01:00
Vo Minh Thu
9f9c9585a1
[REF] Removed support for __terp__.py files and `terp` root elements in XML files.
...
bzr revid: vmt@openerp.com-20130212152328-flpn1tbz75lhi2m2
2013-02-12 16:23:28 +01:00
Vo Minh Thu
e746cb1654
[FIX] registry: fix a bug where RegistryManager.new() could return an out-of-date registry.
...
bzr revid: vmt@openerp.com-20130212085311-o53wv7yful39kktd
2013-02-12 09:53:11 +01:00
Christophe Simonis
236df95b22
merge upstream
...
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +01:00
Antony Lesuisse
f224ce1d8b
[IMP] cli first command testjs
...
bzr revid: al@openerp.com-20121209024618-cae0ux1vmo38ccwr
2012-12-09 03:46:18 +01:00
Christophe Simonis
69d057efc5
merge upstream
...
bzr revid: chs@openerp.com-20121201003326-j6n5r8juz16752j5
bzr revid: chs@openerp.com-20121204165557-u1oxocye3la4r6gf
bzr revid: chs@openerp.com-20121205143722-olswf8gsg8mhref3
2012-12-05 15:37:22 +01:00
Vo Minh Thu
7afd9783e8
[IMP] Use the loglevel TEST when logging test file loading and testsuite execution.
...
bzr revid: vmt@openerp.com-20121203104228-8a5on97pn9r1klls
2012-12-03 11:42:28 +01:00
Christophe Simonis
8200848b3f
merge upstream
...
bzr revid: chs@openerp.com-20121114174352-a0xbech8o4dav16b
2012-11-14 18:43:52 +01:00
Xavier Morel
f579cc927f
[FIX] files filtering when loading... stuff.
...
also, cleanup module file (remove extra imports, extra default key in manifest)
bzr revid: xmo@openerp.com-20121024105454-nqw9taxladjofz2v
2012-10-24 12:54:54 +02:00
Christophe Simonis
7d3f3d475b
merge upstream
...
bzr revid: chs@openerp.com-20121010115500-xz9oqr2g8vzr79jq
2012-10-10 13:55:00 +02:00
Fabien Pinckaers
a48c57df40
[IMP] no certificate
...
bzr revid: fp@tinyerp.com-20120926121536-9836j42ulu8wcir8
2012-09-26 14:15:36 +02:00