[Python-ideas] Test Class setup and teardown in unittest
Robert Collins
robertc at robertcollins.net
Thu Jan 21 21:58:01 CET 2010
On Thu, 2010-01-21 at 21:46 +0100, Holger Krekel wrote:
>
> At least that's my and some of my users experience with it. And is the
> reason why I came up with a new method to do test fixtures that allows
> to directly manipulate setup state in a single place instead of all
> across test suites. Basically test functions receive objects
> ("funcargs") that are created/handled in factories. Loose coupling
> here allows to have the same setup used across many test modules
> efficiently. Obviously different from the testresources approach
> although i share a number of related design considerations and goals.
Yup, I quite liked the funcargs approach you have. Its fitting into a
dramatically different unittest framework but we seem to have otherwise
generated very similar solutions.
-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20100122/5cc5d7d4/attachment.pgp>
More information about the Python-ideas
mailing list