unit test in contributions mapping over selected range dates
What does this MR do and why?
This MR adds unit tests using pytest for:
app.py
generate_report.py
Updated imports in test_batch_logic.py
The goal is to improve test coverage, ensure backend functionality works correctly, and prevent future issues.
References
Pytest documentation and internal testing improvements.
Screenshots or screen recordings Before After No tests for app.py and generate_report.py Tests added and passing successfully How to set up and validate locally
Activate venv
source venv/bin/activate
Run tests
pytest -v
All tests should pass.
MR acceptance checklist
Tests added and passing
No breaking changes
Code structure maintained