Day 26 — Clean Python project structure
Goal
Improve the project structure and separate application code from tests.
The goal is to make the project look closer to a real Python repository.
Tasks
Practice topics
- Python project layout
- separating app code and tests
- imports
- test discovery
- repository structure
- maintainable project organization
Expected result
Project has a cleaner structure:
day26/
├── app/
│ └── service_cli.py
├── tests/
│ └── test_service_cli.py
├── services.json
└── README.md
Day 26 — Clean Python project structure
Goal
Improve the project structure and separate application code from tests.
The goal is to make the project look closer to a real Python repository.
Tasks
day26app/folderapp/service_cli.pytests/foldertests/test_service_cli.pyday26/README.mdREADME.mdPractice topics
Expected result
Project has a cleaner structure: