✅ Add __init__ lifecycle tests #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tests/test_init.pywith two cases:test_setup_entry_authenticates_and_loads: verifies the happy path — entry reachesLOADED,authenticate()is called with stored credentials,hass.data[DOMAIN]['cookies']is populated.test_unload_entry_cleans_up: marked strict-xfail pending finding C5 (async_unload_entrypopsentry.entry_id, but setup never stores anything there). The test will flip to xpass and must be removed once C5 is fixed.Depends on
Test plan
pytest tests/test_init.py— 1 passed, 1 xfailedc8437d42e7df721a02d2✅ (AI) Add __init__ lifecycle teststo ✅ Add __init__ lifecycle testsdf721a02d259f18797e6