def test_sends_installation_notification(self, run): installation_webhook(self.install.id, self.user.id) run.assert_called_with( install=self.install, user=self.user, action='created', )
def test_sends_installation_notification(self, run): installation_webhook(self.install.id, self.user.id) run.assert_called_with( install=self.install, user=self.user, action='created', )
def test_gracefully_handles_missing_user(self, run): installation_webhook(self.install.id, 999) assert len(run.mock_calls) == 0
def test_gracefully_handles_missing_install(self, run): installation_webhook(999, self.user.id) assert len(run.mock_calls) == 0
def test_gracefully_handles_missing_user(self, run): installation_webhook(self.install.id, 999) assert len(run.mock_calls) == 0
def test_gracefully_handles_missing_install(self, run): installation_webhook(999, self.user.id) assert len(run.mock_calls) == 0