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