Skip to content

Commit 24bec22

Browse files
committed
ai(rules[AGENTS]): add functional-only test style guideline
1 parent c0881a0 commit 24bec22

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ PosixPath('.../repo')
188188

189189
### Testing
190190

191+
**Use functional tests only**: Write tests as standalone functions (`test_*`), not classes. Avoid `class TestFoo:` groupings - use descriptive function names and file organization instead. This applies to pytest tests, not doctests.
192+
191193
#### Using libvcs Fixtures
192194

193195
When writing tests, leverage libvcs's pytest plugin fixtures:

0 commit comments

Comments
 (0)