Skip to content

test: add output filtering tests (#147)#154

Merged
abwaters merged 2 commits intomainfrom
147-output-filtering-tests
Mar 9, 2026
Merged

test: add output filtering tests (#147)#154
abwaters merged 2 commits intomainfrom
147-output-filtering-tests

Conversation

@abwaters
Copy link
Owner

@abwaters abwaters commented Mar 9, 2026

Summary

  • Adds TestGitHubRepoFilterHookOutput with 9 async tests for on_post_masking
  • Covers search tool filtering (search_code, search_repositories, search_issues), all-results-filtered message, non-search passthrough, server scoping, fail-closed on parse errors, and wildcard pattern matching

Test plan

  • All 9 new tests pass
  • Ruff format and lint clean

Closes #147

🤖 Generated with Claude Code

Add 9 async tests covering on_post_masking behavior: blocklist/allowlist
filtering for search_code, search_repositories, and search_issues tools,
server scoping, JSON parse error fail-closed, all-filtered policy message,
non-search tool passthrough, and wildcard pattern matching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abwaters abwaters enabled auto-merge March 9, 2026 15:45
@abwaters abwaters merged commit 0264ab7 into main Mar 9, 2026
4 checks passed
@abwaters abwaters deleted the 147-output-filtering-tests branch March 9, 2026 15:47
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.

Add output filtering tests

1 participant