@pytest.fixture(scope='function')
def fitted_result_obj(mocker):
    mock = mocker.Mock(create=True)
    mock.params = (mocker.Mock(), mocker.Mock())
    mock.pvalues = (mocker.Mock(), mocker.Mock())
    mock.ess = MagicMock()
    mock.ssr = MagicMock()
    mock.df_model = MagicMock()
    mock.df_resid = MagicMock()
    mock.resid = mocker.Mock()
    return mock
@pytest.fixture(scope='function')
def fitted_result_obj(mocker):
    mock = mocker.Mock(create=True)
    mock.params = (mocker.Mock(), mocker.Mock())
    mock.pvalues = (mocker.Mock(), mocker.Mock())
    mock.ess = MagicMock()
    mock.ssr = MagicMock()
    mock.df_model = MagicMock()
    mock.df_resid = MagicMock()
    mock.resid = mocker.Mock()
    return mock