Beispiel #1
0
    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',
        )
Beispiel #2
0
    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',
        )
Beispiel #3
0
 def test_gracefully_handles_missing_user(self, run):
     installation_webhook(self.install.id, 999)
     assert len(run.mock_calls) == 0
Beispiel #4
0
 def test_gracefully_handles_missing_install(self, run):
     installation_webhook(999, self.user.id)
     assert len(run.mock_calls) == 0
Beispiel #5
0
 def test_gracefully_handles_missing_user(self, run):
     installation_webhook(self.install.id, 999)
     assert len(run.mock_calls) == 0
Beispiel #6
0
 def test_gracefully_handles_missing_install(self, run):
     installation_webhook(999, self.user.id)
     assert len(run.mock_calls) == 0