Skip to content

fix(tests): pass scoring_* args to PostMessageHandler in forget fixture#1159

Merged
odesenfans merged 1 commit into
mainfrom
od/fix-postmsg-handler-tests
May 21, 2026
Merged

fix(tests): pass scoring_* args to PostMessageHandler in forget fixture#1159
odesenfans merged 1 commit into
mainfrom
od/fix-postmsg-handler-tests

Conversation

@odesenfans
Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • ruff / black --check / isort --check clean
  • python -c "import ast; ast.parse(...)" parses
  • CI mypy passes

PR #1150 added required scoring_addresses, scoring_channel, and
scoring_metrics_post_type args to PostMessageHandler.__init__. The
forget_handler fixture in tests/permissions/test_forget_permissions.py
was added in PR #1156 against a base that already had those required
args but did not pass them, so mypy on main fails with:

  Missing positional arguments "scoring_addresses", "scoring_channel",
  "scoring_metrics_post_type" in call to "PostMessageHandler"

Match the placeholder values used by the equivalent fixture in
tests/message_processing/test_process_forgets.py.
Copy link
Copy Markdown

@foxpatch-aleph foxpatch-aleph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctly passes the three required scoring_* arguments to PostMessageHandler in the forget_handler test fixture, using placeholder values identical to the equivalent fixture in tests/message_processing/test_process_forgets.py. Fixes a mypy error caused by a merge gap between PR #1150 (which added the params) and PR #1156 (which introduced the fixture).

@odesenfans odesenfans merged commit 1b296d2 into main May 21, 2026
4 checks passed
@odesenfans odesenfans deleted the od/fix-postmsg-handler-tests branch May 21, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants