From 4b9f62b14b57868fc8314d63b0818555ca2fe13b Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 11 Feb 2026 11:54:59 +0100 Subject: [PATCH] Add test style guideline to copilot instructions (#6552) Co-authored-by: Claude Opus 4.6 --- .github/copilot-instructions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index a60c2dc18..9f2cc75cb 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -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