[openstack-dev] Replacing mox's stubout with fixtures

Monty Taylor mordred at inaugust.com
Sat Oct 19 12:43:33 UTC 2013


Hey all!

We're using stubout from mox in some places, which means that as people
go through to remove mox, stubout calls also have to be removed.

I wanted to bring to people's attention that the fixtures library, which
we're already using pretty widely, can do this functionality very well,
so I suggest that we just use it.

There is a patch to ironic which does a stubout-ectomy replacing it with
fixtures for reference:

https://review.openstack.org/#/c/51860

The useFixture call also already hooks in to the addCleanup machinery,
so there's no need to do anything special to ensure that the MonkeyPatch
is cleaned up.

Monty



More information about the OpenStack-dev mailing list