Comment 13 for bug 1735588

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

Reviewed: https://review.openstack.org/539908
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=26c91401ee8f203d74261a6b0c67196173ef57d6
Submitter: Zuul
Branch: master

commit 26c91401ee8f203d74261a6b0c67196173ef57d6
Author: Claudiu Belu <email address hidden>
Date: Tue Jan 30 03:48:37 2018 -0800

    tests: autospecs mock.patch and classes usages

    By default, mock.patch's autospec argument is None, meaning that
    there's no signature checking for the patched methods and funtions.

    oslotest.mock_fixture.patch_mock_module fixes a few issues within
    mock.patch functions, as well as setting autospec=True by default,
    unless otherwise specified or new_callable, create, spec arguments
    are passed in.

    Updates HyperVBaseTestCase to autospec the classes used by different
    *Ops classes.

    Change-Id: Ifbdc185d0b50e29c5d5f3ff036141253d2323076
    Partial-Bug: #1735588