def METHOD_NAME(self, mock_import, check_version, get_sha, is_repo):
    mock_import.side_effect = GhpError('TestError123')
    config = load_config(
        remote_branch='test',
    )
    with self.assertLogs('mkdocs', level='ERROR') as cm:
        with self.assertRaises(Abort):
            gh_deploy.gh_deploy(config)
    self.assertEqual(
        cm.output,
        [
            'ERROR:mkdocs.commands.gh_deploy:Failed to deploy to GitHub with error: \n'
            'TestError123'
        ],
    )