Skip to content

Commit bfc7da3

Browse files
docs: clarify Test-class convention applies even in legacy files
1 parent b0c83a8 commit bfc7da3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545

4646
- Framework: `uv run --frozen pytest`
4747
- Async testing: use anyio, not asyncio
48-
- Do not use `Test` prefixed classes, use functions
48+
- Do not use `Test` prefixed classes — write plain top-level `test_*` functions.
49+
Legacy files still contain `Test*` classes; do NOT follow that pattern for new
50+
tests even when adding to such a file.
4951
- IMPORTANT: Tests should be fast and deterministic. Prefer in-memory async execution;
5052
reach for threads only when necessary, and subprocesses only as a last resort.
5153
- For end-to-end behavior, an in-memory `Client(server)` is usually the

0 commit comments

Comments
 (0)