chore: apply linting fixes and expand ruff coverage to test suite

This commit is contained in:
jack
2026-07-06 15:52:53 -07:00
parent d63332d619
commit 015642eea0
24 changed files with 144 additions and 67 deletions
+4 -3
View File
@@ -1,13 +1,14 @@
"""Tests for serialcomm/data_parser.py binary parsing pipeline."""
import pytest
from pygui.serialcomm.data_parser import (
_convert_hex_to_temp,
convert_to_temperatures,
csv_column_count,
parse_binary_data,
convert_to_temperatures,
remove_trailing_zeros,
save_to_csv,
_convert_hex_to_temp,
)
# ── csv_column_count ──────────────────────────────────────────────────────────
@@ -271,7 +272,7 @@ class TestSaveToCsv:
result = save_to_csv(data, "P", "P00001", str(tmp_path))
assert result is not None
headers = open(result).readline().strip().split(",")
assert len(headers) == 60, f"data width 60 should win over display 48"
assert len(headers) == 60, "data width 60 should win over display 48"
assert headers[0] == "Sensor1"
assert headers[-1] == "Sensor60"