def _mock_github_call(self):
        self._orig_github = User.github
        User.github = MagicMock()
        Project._repo = MagicMock()
        Project._repo.get_hooks.return_value = []
Mock github call
dataset/ETHPy150Open nvbn/coviolations_web/tools/tests.py/MockGithubMixin._mock_github_call