mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Added 40+ tests verifying memory leak prevention patterns: - Listener cleanup: Time-sensitive, minute-update, lifecycle callbacks - Timer cancellation: Quarter-hour, minute timers - Config entry cleanup: Options update listener via async_on_unload - Cache invalidation: Config, period, trend caches - Storage cleanup: Cache files deleted on entry removal Tests verify cleanup patterns exist in code (not full integration tests due to complex mocking requirements). Impact: Documents and tests cleanup contracts for future maintainability. Prevents memory leaks when entities removed or config changed. |
||
|---|---|---|
| .. | ||
| __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_percentage_calculations.py | ||
| test_price_calculations.py | ||
| test_rating_threshold_validation.py | ||
| test_resource_cleanup.py | ||
| test_sensor_consistency.py | ||