Skip to content

Commit be5e1ba

Browse files
alexsohn1126claude
andcommitted
fix(slack): Fix mypy error in staging sidegrade test
Use a thin wrapper method that delegates to SlackIntegrationTest's assert_setup_flow instead of assigning the unbound method directly, which mypy rejects due to self-type mismatch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c092d1c commit be5e1ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/sentry/integrations/slack/test_slack_staging_sidegrade.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Integration row.
66
"""
77

8+
from typing import Any
89
from unittest import mock
910
from unittest.mock import MagicMock, patch
1011
from urllib.parse import parse_qs, urlencode, urlparse
@@ -203,7 +204,9 @@ class SlackStagingSidegradeFlowTest(IntegrationTestCase):
203204
"""Tests for the end-to-end sidegrade: production -> staging -> production."""
204205

205206
provider = SlackIntegrationProvider
206-
assert_setup_flow = SlackIntegrationTest.assert_setup_flow
207+
208+
def assert_setup_flow(self, **kwargs: Any) -> None:
209+
SlackIntegrationTest.assert_setup_flow(self, **kwargs)
207210

208211
@responses.activate
209212
@with_feature({"organizations:slack-staging-app": True})

0 commit comments

Comments
 (0)