Skip to content

fix(tests): align subagent catalog division count with bundled library - #426

Merged
jubaoliang merged 3 commits into
developfrom
fix/subagent-catalog-division-count
Aug 25, 2026
Merged

fix(tests): align subagent catalog division count with bundled library#426
jubaoliang merged 3 commits into
developfrom
fix/subagent-catalog-division-count

Conversation

@jubaoliang

Copy link
Copy Markdown
Collaborator

Summary

Fixes two pre-existing test failures that keep develop red. The bundled subagent catalog now loads 19 divisions (272 agents), but two tests still hard-coded the old count of 16:

  • tests/unit/agents/test_subagent_catalog.py::test_bundled_library_non_empty
  • tests/integration/test_subagents_api.py::test_catalog_divisions

Update both assertions from == 16 to == 19 to match the current catalog.

Notes

Test plan

  • uv run pytest tests/unit/agents/test_subagent_catalog.py::test_bundled_library_non_empty tests/integration/test_subagents_api.py::test_catalog_divisions -q

jubaoliang-tencent and others added 3 commits August 25, 2026 08:35
The bundled subagent catalog now loads 19 divisions (272 agents), but two
tests still hard-coded an expected count of 16. Update the assertions so the
pre-commit suite is green.
monkeypatch.setattr(..., raising=True) fails when getuid is missing on
Windows; use raising=False so the USERNAME fallback path is covered.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jubaoliang
jubaoliang merged commit 7910944 into develop Aug 25, 2026
3 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