Lacrima <lacrima.ma...@gmail.com> writes: > Minimock has wider usage and community, but I have some troubles using > it. Maybe I am wrong, but with minimock you always have to keep track > the order of imports in your test modules. Well, may be I just don't > understand fully how minimock works.
I'm not sure why you think you need to keep track of the order of imports. Simply set up the mocks as you want them, in your fixtures; then, when tearing down your fixtures, use ‘minimock.restore()’ to restore the affected namespaces to their initial state. -- \ “… one of the main causes of the fall of the Roman Empire was | `\ that, lacking zero, they had no way to indicate successful | _o__) termination of their C programs.” —Robert Firth | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list