From eeb523d6d73ca0f4e7aa14372bd5ffebbb406a06 Mon Sep 17 00:00:00 2001 From: Raul Almeida Date: Mon, 6 Apr 2026 11:57:30 -0300 Subject: [PATCH] enh: tolerate hardcoded family-specific paths in backend tests --- .github/copilot-instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index a1c3b8a46..aacd0b90a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -85,6 +85,7 @@ When reviewing PRs, **flag any new artefact-specific logic as a blocking issue** - New integrations with artefact-specific external APIs (Snapcraft, Launchpad, etc.) - New family-specific frontend routes, widgets, or UI branches - These violate the core design principle and must not be introduced in new code + - **Exception**: Hardcoded family-specific URIs/paths in backend **tests** are acceptable (e.g., test data with `/snaps/:id` or `/debs/:id` in mock responses/fixtures) 2. **Resource leaks**: - Missing `finally` blocks for state cleanup