mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Added 40+ tests for TibberPricesTimeService: Quarter-hour rounding with ±2s tolerance: - 17 tests covering boundary cases (exact, within tolerance, outside) - Midnight wrap-around scenarios - Microsecond precision edge cases DST handling (23h/25h days): - Standard day: 96 intervals (24h × 4) - Spring DST: 92 intervals (23h × 4) - Fall DST: 100 intervals (25h × 4) - Note: Full DST tests require Europe/Berlin timezone setup Day boundaries and interval offsets: - Yesterday/today/tomorrow boundary calculation - Interval offset (current/next/previous) with day wrapping - Time comparison helpers (is_current_interval) Impact: Validates critical time handling logic. Ensures quarter-hour rounding works correctly for sensor updates despite HA scheduling jitter. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_avg_none_fallback.py | ||
| test_cache_age.py | ||
| test_cache_validity.py | ||
| test_cache_validity_after_midnight.py | ||
| test_chart_data_push_updates.py | ||
| test_config_validators.py | ||
| test_coordinator_shutdown.py | ||
| test_lifecycle_state.py | ||
| test_midnight_handler.py | ||
| test_midnight_periods.py | ||
| test_midnight_turnover.py | ||
| test_minmax_none_fallback.py | ||
| test_next_api_poll.py | ||
| test_percentage_calculations.py | ||
| test_price_calculations.py | ||
| test_rating_threshold_validation.py | ||
| test_resource_cleanup.py | ||
| test_sensor_consistency.py | ||
| test_sensor_timer_assignment.py | ||
| test_time_service.py | ||
| test_timer_scheduling.py | ||