[openstack-dev] [Nova][Oslo] Use of mock in Nova and MockPatch

Sylvain Bauza sbauza at redhat.com
Mon May 26 15:53:34 UTC 2014


Hi,

My goal is not to open another thread about mox vs. mock but rather
discussing on how Nova is currently using mock for new test classes.
At the moment, by looking at the current implementation (make use of
mock.patch() as decorator or in context), I'm feeling it would be
helpful to provide another test helper which will take benefit of Oslo
MockPatch object, hence [1]

What are your opinions about this ?

Thanks,
-Sylvain


[1] https://review.openstack.org/#/c/95552/



More information about the OpenStack-dev mailing list