diff options
author | John Szakmeister <john@szakmeister.net> | 2014-02-20 05:34:33 -0500 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2014-02-20 05:34:33 -0500 |
commit | ea23b2673b2fa69e6fbb8f89c6a32fde10f6de74 (patch) | |
tree | 5f4d3c728e92ad4dbfcacaf8226ad5041ab66c1c /nose | |
parent | c51ff6ffda7e8b36eaa1152090e6238479610d7d (diff) | |
parent | 90469c1c92cfdbc814882f9f11e70c2acf9bfe1b (diff) | |
download | nose-ea23b2673b2fa69e6fbb8f89c6a32fde10f6de74.tar.gz |
Merge pull request #775 from diminoten/master
Fix plugin test interface documentation.
Diffstat (limited to 'nose')
-rw-r--r-- | nose/plugins/plugintest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nose/plugins/plugintest.py b/nose/plugins/plugintest.py index 5068033..76d0d2c 100644 --- a/nose/plugins/plugintest.py +++ b/nose/plugins/plugintest.py @@ -27,7 +27,7 @@ Here's a simple example with a do-nothing plugin and a composed suite. ... class TC(unittest.TestCase): ... def runTest(self): ... raise ValueError("I hate foo") - ... return unittest.TestSuite([TC()]) + ... return [TC('runTest')] ... >>> res = unittest.TestResult() >>> case = TestPluginFoo('test_foo') @@ -79,7 +79,7 @@ arguments and reads environment variables. ... class TC(unittest.TestCase): ... def runTest(self): ... raise ValueError("I hate fancy stuff") - ... return unittest.TestSuite([TC()]) + ... return [TC('runTest')] ... >>> res = unittest.TestResult() >>> case = TestFancyOutputter('test_fancy_output') |