The ironic.tests.unit.drivers.third_party_driver_mocks Module

This module detects whether third-party libraries, utilized by third-party drivers, are present on the system. If they are not, it mocks them and tinkers with sys.modules so that the drivers can be loaded by unit tests, and the unit tests can continue to test the functionality of those drivers without the respective external libraries’ actually being present.

Any external library required by a third-party driver should be mocked here. Current list of mocked libraries:

  • ipminative
  • proliantutils
  • pysnmp
  • scciclient
  • oneview_client
  • pywsman
  • python-dracclient
exception ironic.tests.unit.drivers.third_party_driver_mocks.MockKwargsException(*args, **kwargs)[source]

Bases: exceptions.Exception

ironic.tests.unit.drivers.third_party_driver_mocks.command_exception

alias of IloCommandNotSupportedError