Complete VIDEO-001 through VIDEO-004 software video studies
This commit is contained in:
20
tests/test_video003_stream.py
Normal file
20
tests/test_video003_stream.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""Непрерывный программный поток не получает границы из данных передатчика."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from tools.video003_stream import run
|
||||
|
||||
|
||||
def test_two_full_packets_per_rate_decode_from_received_header() -> None:
|
||||
result = run(packet_count=2, seed=20260916)
|
||||
assert result["rf_tx"] == 0
|
||||
for item in result["results"]:
|
||||
assert item["attempted_packets"] == 2
|
||||
assert item["crc_pass_count"] == item["exact_packet_count"] == 2
|
||||
assert item["verified_video_fragment_count"] == 2
|
||||
assert item["offline_verified_video_bps"] == pytest.approx(
|
||||
item["calculated_zero_loss_video_bps"])
|
||||
assert item["records"][0]["start_symbol_relative"] == 11
|
||||
assert item["records"][1]["start_symbol_relative"] == 0
|
||||
Reference in New Issue
Block a user