diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-07-28 23:32:10 +1000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-07-28 23:32:10 +1000 |
| commit | 7aa495ccf553cf96c04cf2c2419aec8dd7465fac (patch) | |
| tree | 5b90a06fe9dadb0a5fea1cdb61caaddcb512d575 /python/subunit/test_results.py | |
| parent | 9361b85f6b08a1b0838d157a6b2f427291a06aa7 (diff) | |
| download | subunit-git-7aa495ccf553cf96c04cf2c2419aec8dd7465fac.tar.gz | |
Basic progress support.
Diffstat (limited to 'python/subunit/test_results.py')
| -rw-r--r-- | python/subunit/test_results.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index 0a87ba6..a5811aa 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -87,6 +87,10 @@ class HookedTestResultDecorator(object): self._before_event() return self._call_maybe("addUnexpectedSuccess", test) + def progress(self, offset, whence): + self._before_event() + return self._call_maybe("progress", offset, whence) + def wasSuccessful(self): self._before_event() return self.decorated.wasSuccessful() @@ -124,6 +128,9 @@ class AutoTimingTestResultDecorator(HookedTestResultDecorator): time = datetime.datetime.utcnow().replace(tzinfo=iso8601.Utc()) self._call_maybe("time", time) + def progress(self, offset, whence): + return self._call_maybe("progress", offset, whence) + @property def shouldStop(self): return self.decorated.shouldStop |
