Skip to content

test: Add unit tests for GoogleASRRTSPInput plugin#1843

Merged
openminddev merged 3 commits intoOpenMind:mainfrom
Wanbogang:add-unit-test-google-asr-rtsp
Jan 26, 2026
Merged

test: Add unit tests for GoogleASRRTSPInput plugin#1843
openminddev merged 3 commits intoOpenMind:mainfrom
Wanbogang:add-unit-test-google-asr-rtsp

Conversation

@Wanbogang
Copy link
Copy Markdown
Contributor

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

The tests cover:

  • Initialization logic and dependency injection (IOProvider, ASRRTSPProvider, SleepTickerProvider, TeleopsConversationProvider, Zenoh components).
  • Message polling (_poll), including success and empty buffer scenarios.
  • Raw text processing (_raw_to_text) and message buffering (raw_to_text), including logic for managing message concatenation and sleep ticker interaction.
  • Buffer management and formatted output (formatted_latest_buffer), including interactions with IO provider, conversation provider, and Zenoh publisher.
  • Edge cases in message handling (_handle_asr_message), including valid/invalid JSON and word count filtering.

All tests are passing.

@Wanbogang Wanbogang requested a review from a team as a code owner January 23, 2026 03:12
@github-actions github-actions Bot added python Python code tests Test files labels Jan 23, 2026
openminddev and others added 2 commits January 25, 2026 19:48
Added an assertion to ensure that the result of formatted_latest_buffer is not None in the test_formatted_latest_buffer_formats_and_clears_latest_message test.
@openminddev openminddev merged commit 9e4dbd8 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