Merge lp:~kampka/testtools/test-to-fixture into lp:~testtools-committers/testtools/trunk
Proposed by
Christian Kampka
Status: | Needs review |
---|---|
Proposed branch: | lp:~kampka/testtools/test-to-fixture |
Merge into: | lp:~testtools-committers/testtools/trunk |
Diff against target: |
26 lines (+5/-0) 2 files modified
testtools/testcase.py (+1/-0) testtools/tests/test_fixturesupport.py (+4/-0) |
To merge this branch: | bzr merge lp:~kampka/testtools/test-to-fixture |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Needs Fixing | ||
Review via email: mp+65034@code.launchpad.net |
Description of the change
Occasionally I find it useful to have more control over the test within the fixture, e.g. in case something unexpected happens during fixture setup. In order to do so, an instance of the testcase should be available to the fixture.
To post a comment you must log in.
Unmerged revisions
- 193. By Christian Kampka
-
* attach test to fixture before running setUp
Interesting!
What sort of thing would you be doing with .test in the fixture?
I'd be interested to see what Rob thinks. He has said before that he likes the way that fixtures can be theoretically used outside of tests. I guess this isn't tainting all fixtures a priori, but it implies that some of *your* fixtures are very much meant to be tightly integrated with testing.