|
27 | 27 | from sentry.models.commitauthor import CommitAuthor |
28 | 28 | from sentry.models.commitfilechange import CommitFileChange |
29 | 29 | from sentry.models.grouplink import GroupLink |
30 | | -from sentry.models.options.organization_option import OrganizationOption |
31 | 30 | from sentry.models.pullrequest import PullRequest |
32 | 31 | from sentry.models.repository import Repository |
33 | 32 | from sentry.silo.base import SiloMode |
@@ -762,23 +761,6 @@ def test_opened( |
762 | 761 |
|
763 | 762 | assert_success_metric(mock_record) |
764 | 763 |
|
765 | | - @patch("sentry.integrations.github.webhook.metrics") |
766 | | - def test_opened_missing_option(self, mock_metrics: MagicMock) -> None: |
767 | | - Repository.objects.create( |
768 | | - organization_id=self.project.organization.id, |
769 | | - external_id="35129377", |
770 | | - provider="integrations:github", |
771 | | - name="baxterthehacker/public-repo", |
772 | | - ) |
773 | | - |
774 | | - OrganizationOption.objects.set_value( |
775 | | - organization=self.organization, key="sentry:github_open_pr_bot", value=False |
776 | | - ) |
777 | | - |
778 | | - self._create_integration_and_send_pull_request_opened_event() |
779 | | - |
780 | | - assert mock_metrics.incr.call_count == 0 |
781 | | - |
782 | 764 | @patch("sentry.integrations.github.webhook.metrics") |
783 | 765 | def test_creates_missing_repo(self, mock_metrics: MagicMock) -> None: |
784 | 766 |
|
|
0 commit comments