1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-02-14 23:19:37 +00:00

Add test style guideline to copilot instructions (#6552)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Stefan Agner
2026-02-11 11:54:59 +01:00
committed by GitHub
parent 4dd58342b8
commit 4b9f62b14b

View File

@@ -233,6 +233,8 @@ async def backup_full(self, request: web.Request) -> dict[str, Any]:
- **Fixtures**: Extensive use of pytest fixtures for CoreSys setup
- **Mocking**: Mock external dependencies (Docker, D-Bus, network calls)
- **Coverage**: Minimum 90% test coverage, 100% for security-sensitive code
- **Style**: Use plain `test_` functions, not `Test*` classes — test classes are
considered legacy style in this project
### Error Handling