summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2012-12-17 20:24:28 +1300
committerRobert Collins <robertc@robertcollins.net>2012-12-17 20:24:28 +1300
commitd6b7ba2312022dadbde9e1b357d0cd64d1a1d67b (patch)
tree7fcfe11b099622ccfdacff59a9fd93eebfa25725 /python/subunit/tests
parent6bcd5f96767d0e438001c30b441c13e33c062992 (diff)
downloadsubunit-git-d6b7ba2312022dadbde9e1b357d0cd64d1a1d67b.tar.gz
* The ``failfast`` option to ``subunit.run`` will now work. The dependency on
testtools has been raised to 0.9.23 to permit this. (Robert Collins, #1090582)
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_test_results.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py
index 236dfa2..ff74b9a 100644
--- a/python/subunit/tests/test_test_results.py
+++ b/python/subunit/tests/test_test_results.py
@@ -61,6 +61,7 @@ class TimeCapturingResult(unittest.TestResult):
def __init__(self):
super(TimeCapturingResult, self).__init__()
self._calls = []
+ self.failfast = False
def time(self, a_datetime):
self._calls.append(a_datetime)
@@ -198,6 +199,11 @@ class TestAutoTimingTestResultDecorator(unittest.TestCase):
self.assertEqual(3, len(self.decorated._calls))
self.assertNotEqual(None, self.decorated._calls[2])
+ def test_set_failfast_True(self):
+ self.assertFalse(self.decorated.failfast)
+ self.result.failfast = True
+ self.assertTrue(self.decorated.failfast)
+
class TestTagCollapsingDecorator(TestCase):