oslotest.mock_fixture
Module¶oslotest.mock_fixture.
MockAutospecFixture
¶Bases: fixtures.fixture.Fixture
A fixture to add / fix the autospec feature into the mock library.
The current version of the mock library has a few unaddressed issues, which can lead to erroneous unit tests, and can hide actual issues. This fixture is to be removed once these issues have been addressed in the mock library.
Issue addressed by the fixture:
setUp
()¶oslotest.mock_fixture.
patch_mock_module
()¶Replaces the mock.patch class.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.