Add matrix optional dependencies and fix tests #25
Reference in New Issue
Block a user
Delete Branch "fix/matrix-test-optional-deps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes matrix channel test collection error and 5 failing tests.
Changes
pip install nanobot-ai[matrix]*,).get("attachments", [])Result
All 45 matrix channel tests now pass (was: 5 failed, 40 passed).
🤖 Generated with Claude Code
- Add [matrix] optional dependencies section to pyproject.toml (matrix-nio, mistune, nh3) to match error message guidance - Fix test mock function signature to accept positional args instead of keyword-only args (removed *,) - Fix test assertions to handle optional metadata keys using .get("attachments", []) instead of ["attachments"] All 45 matrix channel tests now pass. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>Pull request closed