Refactor/stream helper testing (#1141)

* fix tests part1

* improve testing

* use real audio

* more renaming

* switch to hash assertions

* switch to hash assertions

* switch to hash assertions

* switch to hash assertions

* skip on macos
This commit is contained in:
Henry Ruhs
2026-06-01 18:42:37 +02:00
committed by GitHub
parent 3eeb505c86
commit e2e4e6a95b
8 changed files with 95 additions and 101 deletions
+3 -3
View File
@@ -30,9 +30,9 @@ def test_create() -> None:
def test_encode() -> None:
vision_frame = read_video_frame(get_test_example_file('target-240p.mp4'))
video_buffer = cv2.cvtColor(vision_frame, cv2.COLOR_BGR2YUV_I420).tobytes()
video_resolution = (vision_frame.shape[1], vision_frame.shape[0])
video_frame = read_video_frame(get_test_example_file('target-240p.mp4'))
video_buffer = cv2.cvtColor(video_frame, cv2.COLOR_BGR2YUV_I420).tobytes()
video_resolution = (video_frame.shape[1], video_frame.shape[0])
aom_encoder = create(video_resolution, 1000, 1, 0)
if is_linux() or is_windows():