Parent Issue: #4 Zero Test Coverage
Objective
Create unit tests for all entity platforms (sensors, binary sensors, selects) covering state derivation and user actions.
Test Coverage Areas
Sensor Platform Tests
Binary Sensor Platform Tests
Select Platform Tests
Entity Base Tests
Mock Strategy
# Mock coordinator with fixture data
@pytest.fixture
def mock_coordinator():
coordinator = Mock(spec=RiverLinkDataUpdateCoordinator)
coordinator.data = {
"receivers": {...},
"transmitters": {...}
}
return coordinator
Target Coverage
- Goal: 80%+ line coverage per platform file
- Focus: State derivation and user actions
References
Priority
🟡 Medium - User-facing components
Parent Issue: #4 Zero Test Coverage
Objective
Create unit tests for all entity platforms (sensors, binary sensors, selects) covering state derivation and user actions.
Test Coverage Areas
Sensor Platform Tests
Binary Sensor Platform Tests
Select Platform Tests
Entity Base Tests
Mock Strategy
Target Coverage
References
sensor.py,binary_sensor.py,select.pyPriority
🟡 Medium - User-facing components