Summary
Move the older shared Duco test payloads to fixture files so the broader Duco test suite follows the same pattern now used for the newer VLV sensor payloads.
Scope
- Move shared inline Duco node payloads out of
tests/components/duco/conftest.py
- Store them under
tests/components/duco/fixtures
- Reuse fixture loading helpers with a small conversion helper in
conftest.py
- Keep test bodies focused on behavior instead of payload literals
Why
A recent review on PR home-assistant#171182 pointed out that larger inline payloads make tests noisy and obscure what each test actually verifies. The new VLV sensor payloads were moved to fixtures there; this follow-up applies the same pattern more broadly to the older shared Duco test data.
Notes
This is intentionally follow-up work so the fixture cleanup stays out of the scope of PR home-assistant#171182.
Summary
Move the older shared Duco test payloads to fixture files so the broader Duco test suite follows the same pattern now used for the newer VLV sensor payloads.
Scope
tests/components/duco/conftest.pytests/components/duco/fixturesconftest.pyWhy
A recent review on PR home-assistant#171182 pointed out that larger inline payloads make tests noisy and obscure what each test actually verifies. The new VLV sensor payloads were moved to fixtures there; this follow-up applies the same pattern more broadly to the older shared Duco test data.
Notes
This is intentionally follow-up work so the fixture cleanup stays out of the scope of PR home-assistant#171182.