We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bc0aeb commit d1967b4Copy full SHA for d1967b4
2 files changed
tests/AGENTS.md
@@ -63,6 +63,12 @@ def test_service_initialization(mock_client):
63
mock_client.assert_called_once()
64
```
65
66
+> **Critical rule**: `@patch` is only acceptable for **external libraries and stdlib** (e.g.
67
+> `sentry_sdk`, `importlib.metadata.entry_points`, `sys.exit`). Never patch symbols that live
68
+> inside `aignostics_foundry_core` itself — instead set up the real environment so the code runs
69
+> for real (use `set_context()` / `reset_context()`, set `request.app.state`, etc.) and mark
70
+> those tests `@pytest.mark.integration`.
71
+
72
**Run locally**:
73
74
```bash
0 commit comments