(self)
| 1002 | raise NotImplementedError(f"implement for {type(self).__module__}.{type(self).__name__}") |
| 1003 | |
| 1004 | def setUp(self): |
| 1005 | from sentry.integrations.pipeline import IntegrationPipeline |
| 1006 | |
| 1007 | super().setUp() |
| 1008 | |
| 1009 | self.organization = self.create_organization(name="foo", owner=self.user) |
| 1010 | with assume_test_silo_mode(SiloMode.CELL): |
| 1011 | rpc_organization = serialize_rpc_organization(self.organization) |
| 1012 | |
| 1013 | self.login_as(self.user) |
| 1014 | self.request = self.make_request(self.user) |
| 1015 | # XXX(dcramer): this is a bit of a hack, but it helps contain this test |
| 1016 | self.pipeline = IntegrationPipeline( |
| 1017 | request=self.request, |
| 1018 | organization=rpc_organization, |
| 1019 | provider_key=self.provider.key, |
| 1020 | ) |
| 1021 | |
| 1022 | self.setup_path = reverse( |
| 1023 | "sentry-extension-setup", kwargs={"provider_id": self.provider.key} |
| 1024 | ) |
| 1025 | self.configure_path = f"/extensions/{self.provider.key}/configure/" |
| 1026 | |
| 1027 | self.pipeline.initialize() |
| 1028 | self.save_session() |
| 1029 | |
| 1030 | def assertDialogSuccess(self, resp): |
| 1031 | assert b'window.opener.postMessage({"success":true' in resp.content |
nothing calls this directly
no test coverage detected