Skip to content

Commit 05bf0d8

Browse files
grichaclaude
andcommitted
fix(test): Update severity test for actor_type in viewer context
ViewerContext.serialize() now always includes actor_type. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f6e109e commit 05bf0d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/sentry/event_manager/test_severity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def test_error_event_simple(self, mock_urlopen: MagicMock) -> None:
8888
override_settings(SEER_API_SHARED_SECRET="some-secret"),
8989
):
9090
_get_severity_score(event)
91-
viewer_context_bytes = orjson.dumps({"organization_id": self.project.organization_id})
91+
viewer_context_bytes = orjson.dumps(
92+
{"actor_type": "unknown", "organization_id": self.project.organization_id}
93+
)
9294
mock_urlopen.assert_called_with(
9395
"POST",
9496
"/v0/issues/severity-score",

0 commit comments

Comments
 (0)