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