diff options
author | diminoten <diminoten@gmail.com> | 2014-02-19 19:03:38 -0500 |
---|---|---|
committer | diminoten <diminoten@gmail.com> | 2014-02-19 19:03:38 -0500 |
commit | 90469c1c92cfdbc814882f9f11e70c2acf9bfe1b (patch) | |
tree | 18e40da4169224436f90cf699a6c5fa871b8ba34 | |
parent | 129bd91e222a0ef973ea962eb539763748b54a84 (diff) | |
download | nose-90469c1c92cfdbc814882f9f11e70c2acf9bfe1b.tar.gz |
Fix plugin test interface documentation. #773
-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') |