Skip to content

Commit ec46b92

Browse files
ref: fix types for test_event_attachment_details (#82091)
<!-- Describe your PR here. -->
1 parent 33b8a62 commit ec46b92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ module = [
321321
"tests.sentry.api.bases.test_team",
322322
"tests.sentry.api.endpoints.notifications.test_notification_actions_details",
323323
"tests.sentry.api.endpoints.notifications.test_notification_actions_index",
324-
"tests.sentry.api.endpoints.test_event_attachment_details",
325324
"tests.sentry.api.helpers.test_group_index",
326325
"tests.sentry.api.test_authentication",
327326
"tests.sentry.api.test_base",

tests/sentry/api/endpoints/test_event_attachment_details.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from sentry.attachments.base import CachedAttachment
55
from sentry.models.activity import Activity
66
from sentry.models.eventattachment import EventAttachment
7-
from sentry.testutils.cases import APITestCase, PermissionTestCase
7+
from sentry.testutils.cases import APITestCase, PermissionTestCase, TestCase
88
from sentry.testutils.helpers.datetime import before_now
99
from sentry.testutils.helpers.features import with_feature
1010
from sentry.testutils.helpers.options import override_options
@@ -17,7 +17,7 @@
1717
ATTACHMENT_CONTENT = b"File contents here" * 10_000
1818

1919

20-
class CreateAttachmentMixin:
20+
class CreateAttachmentMixin(TestCase):
2121
def create_attachment(self, content: bytes | None = None, group_id: int | None = None):
2222
self.project = self.create_project()
2323
self.release = self.create_release(self.project, self.user)
@@ -151,6 +151,7 @@ def test_delete_activity_with_group(self):
151151
delete_activity = Activity.objects.get(type=ActivityType.DELETED_ATTACHMENT.value)
152152
assert delete_activity.project == self.project
153153
assert delete_activity.group_id == group_id
154+
assert delete_activity.group is not None
154155
assert delete_activity.group.id == group_id
155156

156157

0 commit comments

Comments
 (0)