Skip to content

test: Add unit tests for GalleryIdentities input plugin#1840

Merged
openminddev merged 2 commits intoOpenMind:mainfrom
Wanbogang:add-unit-test-gallery-identities-input
Jan 26, 2026
Merged

test: Add unit tests for GalleryIdentities input plugin#1840
openminddev merged 2 commits intoOpenMind:mainfrom
Wanbogang:add-unit-test-gallery-identities-input

Conversation

@Wanbogang
Copy link
Copy Markdown
Contributor

This PR adds comprehensive unit tests for the GalleryIdentities input plugin located in src/inputs/plugins/gallery_identities_input.py.

The tests cover:

  • Initialization logic and dependency injection (IOProvider, GalleryIdentitiesProvider).
  • Message polling (_poll), including success and empty buffer scenarios.
  • Raw text processing (_raw_to_text) and message buffering (raw_to_text).
  • Buffer management and formatted output (formatted_latest_buffer).
  • Edge cases in message handling (_handle_gallery_message), including dropping oldest messages when the buffer is full.

All tests are passing.

@Wanbogang Wanbogang requested a review from a team as a code owner January 23, 2026 01:17
@github-actions github-actions Bot added python Python code tests Test files labels Jan 23, 2026
@openminddev openminddev merged commit b6f482d into OpenMind:main Jan 26, 2026
5 checks passed
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.

2 participants