Single test configuration.
| 47 | |
| 48 | @dataclass |
| 49 | class TestCase: |
| 50 | """Single test configuration.""" |
| 51 | |
| 52 | base_led_count: int |
| 53 | lane_count: int |
| 54 | lane_sizes: list[int] |
| 55 | use_legacy_api: bool |
| 56 | driver: str = "PARLIO" |
| 57 | pattern: str = "MSB_LSB_A" |
| 58 | timing: str = "WS2812B-V5" |
| 59 | |
| 60 | @property |
| 61 | def label(self) -> str: |
| 62 | sizes_str = ",".join(str(s) for s in self.lane_sizes) |
| 63 | api = "legacy" if self.use_legacy_api else "channel" |
| 64 | return f"{self.driver} {self.lane_count}L [{sizes_str}] ({api})" |
| 65 | |
| 66 | |
| 67 | @dataclass |