29. Test Organization
Organizing tests makes projects easier to maintain.
Common Conventions
- Place tests in a
tests/folder - Name test files like test_*.py
- Use descriptive test names
Example Structure
project/
app.py
tests/
test_app.py
Practice Challenge
Restructure a project so all tests live under tests/ with proper naming conventions.
Wrap-Up
Organized tests improve readability and maintainability.