✅ Add pytest infrastructure #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/infra"
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
requirements-test.txt(pytest,pytest-homeassistant-custom-component,comwatt-client),pytest.ini(asyncio auto-mode, testpaths),tests/__init__.py, andtests/conftest.pywith an auto-enabled custom-integrations fixture and amock_comwatt_clientfixture that patches every import site ofComwattClient.tests/test_smoke.pysanity-checks the plumbing and validates manifest invariants (domain,config_flow,requirements).Test plan
pytest tests/test_smoke.pypasses locally (2 passed)Follow-ups
__init__, sensor and switch tests on top of this scaffolding.main; this one should merge first.b11e0f168e05511bb47b05511bb47b2b1b7e8ff9✅ (AI) Add pytest infrastructureto ✅ Add pytest infrastructure2b1b7e8ff97b9d0f11b0