# HG changeset patch # User Sandrine Ribeau # Date 1230068135 28800 # Node ID f1d56beb3dd79a865c83bd09a6723311f5d6c2b8 # Parent 9eaf8faf2f83106796dff463ccdc222cb2ea8c8a [doc] Renaming for tests thematic. diff -r 9eaf8faf2f83 -r f1d56beb3dd7 doc/book/en/B130-tests.en.txt --- a/doc/book/en/B130-tests.en.txt Tue Dec 23 13:34:30 2008 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -.. -*- coding: utf-8 -*- - -Tests -===== - -Unit tests ----------- - -`CubicWeb` framework provides essentially two Python test classes in the -module `cubicweb.devtools.apptest`: - -* `EnvBasedTC`, to simulate a complete environment (web + repository) -* `RepositoryBasedTC`, to simulate a repository environment only - -Thos two classes almost have the same interface and offers numerous methods to -write tests rapidely and efficiently. - -XXX FILLME describe API - -In most of the cases, you will inherit `EnvBasedTC` to write Unittest or -functional tests for your entities, views, hooks, etc... - -Email notifications tests -------------------------- -When running tests potentially generated e-mails are not really -sent but is found in the list `MAILBOX` of module `cubicweb.devtools.apptest`. -This list is reset at each test *setUp* (by the setUp of classes `EnvBasedTC` -and `RepositoryBasedTC`). - - -You can test your notifications by analyzing the contents of this list, which -contains objects with two attributes: -* `recipients`, the list of recipients -* `msg`, object email.Message - -Automatic testing ------------------ -XXXFILLME diff -r 9eaf8faf2f83 -r f1d56beb3dd7 doc/book/en/B3-test.en.txt --- a/doc/book/en/B3-test.en.txt Tue Dec 23 13:34:30 2008 -0800 +++ b/doc/book/en/B3-test.en.txt Tue Dec 23 13:35:35 2008 -0800 @@ -5,5 +5,5 @@ .. toctree:: :maxdepth: 1 - B130-tests.en.txt + B3010-tests.en.txt diff -r 9eaf8faf2f83 -r f1d56beb3dd7 doc/book/en/B3010-tests.en.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/book/en/B3010-tests.en.txt Tue Dec 23 13:35:35 2008 -0800 @@ -0,0 +1,38 @@ +.. -*- coding: utf-8 -*- + +Tests +===== + +Unit tests +---------- + +`CubicWeb` framework provides essentially two Python test classes in the +module `cubicweb.devtools.apptest`: + +* `EnvBasedTC`, to simulate a complete environment (web + repository) +* `RepositoryBasedTC`, to simulate a repository environment only + +Thos two classes almost have the same interface and offers numerous methods to +write tests rapidely and efficiently. + +XXX FILLME describe API + +In most of the cases, you will inherit `EnvBasedTC` to write Unittest or +functional tests for your entities, views, hooks, etc... + +Email notifications tests +------------------------- +When running tests potentially generated e-mails are not really +sent but is found in the list `MAILBOX` of module `cubicweb.devtools.apptest`. +This list is reset at each test *setUp* (by the setUp of classes `EnvBasedTC` +and `RepositoryBasedTC`). + + +You can test your notifications by analyzing the contents of this list, which +contains objects with two attributes: +* `recipients`, the list of recipients +* `msg`, object email.Message + +Automatic testing +----------------- +XXXFILLME