testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00167
[Bug 657780] Re: Per-test decorator syntax for test runner
** Changed in: testtools
Status: Triaged => In Progress
** Changed in: testtools
Assignee: (unassigned) => Jonathan Lange (jml)
** Changed in: testtools
Milestone: None => next
** Changed in: testtools
Status: In Progress => Fix Committed
--
Per-test decorator syntax for test runner
https://bugs.launchpad.net/bugs/657780
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
Status in testtools: Fix Committed
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