Skip to content

fix: AC4 static fallback + test collection errors - #11

Merged
pt-act merged 1 commit into
mainfrom
upstream-contrib/ac4-test-collection-fix
Aug 31, 2026
Merged

pt-act merged 1 commit into
mainfrom
upstream-contrib/ac4-test-collection-fix

Conversation

@pt-act

@pt-act pt-act commented Aug 23, 2026

Copy link
Copy Markdown
Owner

wallbreaker_mcp/server.py:

  • wb_seed_list now includes builtin static categories as fallback when any source-specific query returns 0 external categories (was only on source='all'). Fixes AC4 for source='harmbench' when HarmBench data isn't cached.

pyproject.toml:

  • Add hypothesis>=6.0 to [dependency-groups] dev (was only in [project.optional-dependencies] dev, not installed by uv sync)

tests/ (9 files):

  • Add pytest.importorskip guards for optional deps (hypothesis, fastapi, PIL/Pillow) so tests skip gracefully instead of erroring during collection
  • Affected: test_security_properties, test_audit_remediation, test_tg1..tg7, test_typographic

Result: 0 collection errors (was 9), 60 skipped, 1173 passed, 16 pre-existing failures (test_session_card, test_tg5_harden)

wallbreaker_mcp/server.py:
- wb_seed_list now includes builtin static categories as fallback
  when any source-specific query returns 0 external categories
  (was only on source='all'). Fixes AC4 for source='harmbench'
  when HarmBench data isn't cached.

pyproject.toml:
- Add hypothesis>=6.0 to [dependency-groups] dev (was only in
  [project.optional-dependencies] dev, not installed by uv sync)

tests/ (9 files):
- Add pytest.importorskip guards for optional deps (hypothesis,
  fastapi, PIL/Pillow) so tests skip gracefully instead of
  erroring during collection
- Affected: test_security_properties, test_audit_remediation,
  test_tg1..tg7, test_typographic

Result: 0 collection errors (was 9), 60 skipped, 1173 passed,
16 pre-existing failures (test_session_card, test_tg5_harden)
@pt-act
pt-act merged commit 8d0ad28 into main Aug 31, 2026
4 checks passed
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