[PATCH/RFC v3] Provide basic test fixture through inheritance

Jeremy Kerr jk at ozlabs.org
Thu Apr 14 13:24:45 EST 2011


Hi Dirk,

> Provide project and user objects for test cases through inheritance.
> Just derive from BaseFixtureTestCase instead of the normal TestCase.
> The provided objects are accessible as attributes.

Looks good, seems like a good direction to go in.

Do you think this would work as a stand-alone object, rather than one
that is inherited by test cases? (ie, replacing the tests.utils.defaults
object) I already have some inheritance in the current tests, and would
rather avoid using multiple inheritance if at all possible.

Cheers,


Jeremy



More information about the Patchwork mailing list