Comment 8 for bug 1735588

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-win (master)

Reviewed: https://review.openstack.org/532619
Committed: https://git.openstack.org/cgit/openstack/os-win/commit/?id=823b162c6a02083f6ae6f6ce27150c039687993d
Submitter: Zuul
Branch: master

commit 823b162c6a02083f6ae6f6ce27150c039687993d
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: I5a1dd8571988859b4a14a505fd5e016079582363