Commit fa1ac22
Spin up an in-memory recorder in test conftest
The integration declares a hard dependency on the recorder for
long-term-statistics imports; without setting one up in tests,
config_entries.async_setup fails with 'Could not setup dependencies:
recorder' and 14/24 of our HA tests blow up.
PHACC's recorder_mock fixture provides an in-memory SQLite recorder,
but it asserts that the hass fixture has not been set up yet — so we
fold it into the existing autouse alongside enable_custom_integrations
and put it first in the parameter list to control the load order.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent be24751 commit fa1ac22
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments