Best Practices
Best Practices
- Use markers consistently - All tests should have at least one marker
- Minimize fixture scope - Use function scope unless sharing is needed
- Keep fixtures focused - One purpose per fixture
- Document fixtures - Add docstrings explaining usage
- Use tmp_path - For temporary files (auto-cleaned)