21 lines
849 B
Python
21 lines
849 B
Python
"""Непрерывный программный поток не получает границы из данных передатчика."""
|
|
|
|
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
|