Пример #1
0
    def test_does_not_process_sentry_apps_without_issue_webhooks(self, safe_urlopen):
        SentryAppInstallation.objects.all().delete()
        SentryApp.objects.all().delete()

        # DOES NOT subscribe to Issue events
        self.create_sentry_app_installation(organization=self.organization)

        process_resource_change('created', 'Group', self.create_group().id)

        assert len(safe_urlopen.mock_calls) == 0
Пример #2
0
    def test_does_not_process_sentry_apps_without_issue_webhooks(self, safe_urlopen):
        SentryAppInstallation.objects.all().delete()
        SentryApp.objects.all().delete()

        # DOES NOT subscribe to Issue events
        self.create_sentry_app_installation(organization=self.organization)

        process_resource_change('created', 'Group', self.create_group().id)

        assert len(safe_urlopen.mock_calls) == 0
Пример #3
0
 def test_does_not_process_disallowed_event(self, safe_urlopen):
     process_resource_change("delete", "Group", self.create_group().id)
     assert len(safe_urlopen.mock_calls) == 0
Пример #4
0
 def test_does_not_process_disallowed_event(self, safe_urlopen):
     process_resource_change('delete', 'Group', self.create_group().id)
     assert len(safe_urlopen.mock_calls) == 0