diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-10-13 21:45:45 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-10-13 21:45:45 +0000 |
commit | 75c9c574e20b4ebe53c6a33753295ad65557d9bf (patch) | |
tree | f8bfb09eccdba87d5741fd83b0a37393b41ecdde /README.txt | |
parent | 65b2975d6c4e6af7a64725987a5838d3e71245e5 (diff) | |
download | nose-75c9c574e20b4ebe53c6a33753295ad65557d9bf.tar.gz |
Merged 0.10.0-stable [308]:[378] into trunk
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -275,6 +275,11 @@ function test case wrapper for each tuple it yields. As in the example, test generators must yield tuples, the first element of which must be a callable and the remaining elements the arguments to be passed to the callable. +By default, the test name output for a generated test in verbose mode +will be the name of the generator function or method, followed by the +args passed to the yielded callable. If you want to show a different test +name, set the ``description`` attribute of the yielded callable. + Setup and teardown functions may be used with test generators. The setup and teardown attributes must be attached to the generator function:: @@ -319,7 +324,7 @@ nose, by default, follows a few simple rules for test discovery. loaded as package.module and the directory of *package* will be added to sys.path. -* If a object defines a __test__ attribute that does not evaluate to +* If an object defines a __test__ attribute that does not evaluate to True, that object will not be collected, nor will any objects it contains. |