[requirements][all] migration OFF of mock to the unittest.mock built-in library
smooney at redhat.com
Thu Mar 12 17:59:39 UTC 2020
On Thu, 2020-03-12 at 11:00 -0500, Matthew Thode wrote:
> I'd like to suggest, now that we are on modern python, that we stop
> using the mock library and instead use the built in mock library.
yep i have already started doing that in cases where i am intoducing a new
unit test file. i have not start chaning over existing usage of the mock
lib but im avoiding new usage of it.
> unittest.mock has been around since python-3.3 so we should not have a
> problem with python support. This would allow us to drop a library and
> also help prevent issues with stuff like
> https://review.opendev.org/712713 is going to expose (nova/neutron fail
> tests with the external mock-4 library).
More information about the openstack-discuss