Skip to content

[codex] Isolate Parakeet stream language detection tests#7941

Open
tianmind-studio wants to merge 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-parakeet-stream-langdetect
Open

[codex] Isolate Parakeet stream language detection tests#7941
tianmind-studio wants to merge 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-parakeet-stream-langdetect

Conversation

@tianmind-studio

Copy link
Copy Markdown
Contributor

Summary

  • Add a lightweight langdetect / LangDetectException stub to test_parakeet_stream_session.py.
  • Keep Parakeet stream-session tests runnable in lightweight Windows backend unit environments without installing the full language-detection dependency.
  • Preserve the file's existing transcribe, Scipy, and torch stubs.

Root cause

stream_handler.py imports langdetect at module import time for detected-language metadata. In a lightweight Windows backend unit venv without full backend requirements installed, test_parakeet_stream_session.py could not collect even though the tested session behavior does not require the real language detector.

Before this change:

  • python -m pytest backend\tests\unit\test_parakeet_stream_session.py --collect-only -q --tb=short -> ModuleNotFoundError: No module named 'langdetect'

Validation

  • python -m pytest backend\tests\unit\test_parakeet_stream_session.py --collect-only -q --tb=short -> 14 tests collected
  • python -m pytest backend\tests\unit\test_parakeet_stream_session.py -q --tb=short -> 14 passed
  • python -m pytest backend\tests\unit\test_action_item_date_validation.py backend\tests\unit\test_parakeet_stream_session.py -q --tb=short -> 40 passed
  • python -m black --check --line-length 120 --skip-string-normalization backend\tests\unit\test_parakeet_stream_session.py
  • python -m py_compile backend\tests\unit\test_parakeet_stream_session.py
  • git diff --check
  • scripts/pre-commit

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.

1 participant