tests package#
tests.matlab_mock module#
- class tests.matlab_mock.MockMatlabEngine(*args, **kw)[source]#
Bases:
MagicMockA mock object for the matlab.engine module. This mock object can be used in unit tests that involve the matlab.engine module. It provides a connect() method that returns an instance of the MockMatlabEngine class.
- classmethod connect(*args, **kwargs)[source]#
Returns an instance of the MockMatlabEngine class.
This method is used to mock the behavior of the matlab.engine.connect() function. It returns an instance of the MockMatlabEngine class, which can be used in unit tests to simulate the behavior of a real MATLAB engine.
- Returns:
An instance of the MockMatlabEngine class.