test: add HA integration tests with fake in-process server

Fake HA server (aiohttp.web) simulates full API surface over real TCP:
- WebSocket auth handshake + event push
- REST endpoints (states, services, notifications)

14 integration tests verify end-to-end flows without mocks:
- WS connect/auth/subscribe/event-forwarding/disconnect
- REST list/get/call-service against fake server
- send() notification delivery and auth failure
- 401/500 error handling
This commit is contained in:
0xbyt4
2026-02-28 14:28:04 +03:00
parent c36b256de5
commit b32c642af3
3 changed files with 629 additions and 0 deletions

0
tests/fakes/__init__.py Normal file
View File