Commit Graph

4 Commits

Author SHA1 Message Date
James Hush
6eb7da6a1b Align smallwebrtc test with repo conventions (unittest + optional dep guard)
Migrate from pytest-style to unittest.IsolatedAsyncioTestCase to match the
pattern used by other transport tests (e.g. test_livekit_transport.py). Guard
the aiortc/av import with try/except and skipUnless so tests gracefully skip
when webrtc dependencies aren't installed. Add pyright suppressions for false
positives inherent to testing internals of optional-dependency classes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 10:27:21 +08:00
James Hush
5d3aadadf1 Improve timestamp test to check frame pts difference 2026-02-05 10:12:45 +08:00
James Hush
63083cd021 Add validation for num_10ms_chunks parameter
Ensure num_10ms_chunks is a positive integer to prevent division by zero
or invalid audio chunk sizes. Raises ValueError if value is less than 1.
2026-02-05 10:11:10 +08:00
James Hush
f45f23fb1a Add unit tests for RawAudioTrack audio chunk size configuration 2026-02-05 10:08:55 +08:00