Skip to content

test(actions): add unit tests for face action#2132

Open
LupaFlex wants to merge 2 commits intoOpenMind:mainfrom
LupaFlex:test/add-face-action-tests
Open

test(actions): add unit tests for face action#2132
LupaFlex wants to merge 2 commits intoOpenMind:mainfrom
LupaFlex:test/add-face-action-tests

Conversation

@LupaFlex
Copy link

@LupaFlex LupaFlex commented Feb 5, 2026

Summary

Added comprehensive unit tests for the face action module which previously had no test coverage.

Changes

  • tests/actions/face/test_interface.py: Tests for FaceAction enum, FaceInput dataclass, and Face interface
  • tests/actions/face/connector/test_avatar.py: Tests for FaceAvatarConnector

Test Coverage

  • FaceAction enum values and type validation (6 expressions: happy, confused, curious, excited, sad, think)
  • FaceInput creation with all action types
  • Face interface with input/output handling
  • FaceAvatarConnector initialization
  • Avatar command mapping for all expressions
  • Stop method behavior

Testing

  • All 15 tests pass
  • Pre-commit checks pass
  • Ruff linting passes

Notes

  • Follows existing test patterns (no __init__.py files in test directories)
  • Uses proper module mocking for external dependencies (zenoh, zenoh_msgs)

@LupaFlex LupaFlex requested a review from a team as a code owner February 5, 2026 21:17
@github-actions github-actions bot added python Python code tests Test files labels Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant