testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00499
[Bug 657780] Re: Per-test decorator syntax for test runner
** Changed in: testtools
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/657780
Title:
Per-test decorator syntax for test runner
Status in testtools:
Fix Released
Bug description:
It would be really nice to be able to specify a test runner (e.g. RunTest) on a per-test basis using decorator syntax. That way tests with special running needs would not have to be split into separate classes. Ideally, this would not require the use of a special loader.
e.g.
{{{
class TestFoo(TestCase):
def test_normal(self):
pass
@use_runner(DeferredRunTest)
def test_deferred(self):
return defer.succeed(None)
}}}
Spelling can vary.
References