chore: apply linting fixes and expand ruff coverage to test suite
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user