def loose_mock(request, name=None, **kwargs):
    if name is None:
        name = request.fixturename
    return Mock(name=name, **kwargs)
Return a "loose" mock, meaning it has no spec to constrain calls on it.
dataset/ETHPy150Open python-openxml/python-docx/tests/unitutil/mock.py/loose_mock