Pytest Mocker Patch Function With Sharepoint