Autospecing will ensure that the method signatures are respected
during calls.
oslotest.mock_fixture contains 2 components, one of them adds the autospec
argument to mock.Mock and mock.MagicMock, while the other one fixes the
autospec behaviour for mock.patch functions, and sets autospec to True by
default, unless otherwise specified.
Reviewed: https:/ /review. openstack. org/532619 /git.openstack. org/cgit/ openstack/ os-win/ commit/ ?id=823b162c6a0 2083f6ae6f6ce27 150c039687993d
Committed: https:/
Submitter: Zuul
Branch: master
commit 823b162c6a02083 f6ae6f6ce27150c 039687993d
Author: Claudiu Belu <email address hidden>
Date: Wed Jan 10 21:47:21 2018 +0200
tests: Use mock autospec in unit tests
Autospecing will ensure that the method signatures are respected
during calls.
oslotest. mock_fixture contains 2 components, one of them adds the autospec
argument to mock.Mock and mock.MagicMock, while the other one fixes the
autospec behaviour for mock.patch functions, and sets autospec to True by
default, unless otherwise specified.
Closes-Bug: #1735588
Change-Id: I5a1dd857198885 9b4a14a505fd5e0 16079582363