[IMP] add a doc blurb to testing.section and testing.case
bzr revid: xmo@openerp.com-20121029120426-xdk03e5gvv1n03jw
This commit is contained in:
parent
a9f1489fd0
commit
e7fbd7290f
|
@ -497,6 +497,13 @@ Testing API
|
|||
|
||||
.. js:function:: openerp.testing.section(name[, options], body)
|
||||
|
||||
A test section, serves as shared namespace for related tests (for
|
||||
constants or values to only set up once). The ``body`` function
|
||||
should contain the tests themselves.
|
||||
|
||||
Note that the order in which tests are run is essentially
|
||||
undefined, do *not* rely on it.
|
||||
|
||||
:param String name:
|
||||
:param TestOptions options:
|
||||
:param body:
|
||||
|
@ -504,6 +511,10 @@ Testing API
|
|||
|
||||
.. js:function:: openerp.testing.case(name[, options], callback)
|
||||
|
||||
Registers a test case callback in the test runner, the callback
|
||||
will only be run once the runner is started (or maybe not at all,
|
||||
if the test is filtered out).
|
||||
|
||||
:param String name:
|
||||
:param TestOptions options:
|
||||
:param callback:
|
||||
|
|
Loading…
Reference in New Issue