Skip to content

Feat: Increase test coverage for manual_entry.py to 98%#33

Closed
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
feature/increase-coverage-manual-entry
Closed

Feat: Increase test coverage for manual_entry.py to 98%#33
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
feature/increase-coverage-manual-entry

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

Have you read the Contributing Guidelines?

Fixes #29 (partially)

Description

This PR is the first in a series to address issue #29, which aims to increase the project's test coverage to 100%.

This PR focuses on the app/routes/manual_entry.py module, increasing its test coverage from 72% to 98%.

  • Added 9 new tests to tests/test_routes.py to cover various error conditions and untested logic in the manual_entry routes.
  • The new tests cover invalid payloads, missing data, and the GET /entry/<date> route which was previously untested.

Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • UI/UX improvement
  • Code style update
  • Test coverage
  • Configuration change

Testing

This PR is all about testing!

  • All 71 tests in the suite pass.
  • The coverage for app/routes/manual_entry.py has been verified to be 98%.
  • The overall project coverage has increased from 91% to 94%.

Screenshots

Not applicable.

Checklist

  • I have followed the project's code style (Black, isort, PEP 8)
  • My code generates no new warnings
  • I have added tests for new functionality
  • All tests pass locally
  • I have updated the documentation where necessary (not applicable for this change)
  • I have run pre-commit hooks before submitting

This commit increases the test coverage for the `app/routes/manual_entry.py` module from 72% to 98%.

- Adds 9 new tests to cover error handling and untested routes.
- Covers cases like invalid payloads, missing data, and the GET /entry/<date> endpoint.

This is the first part of the effort to address issue #29.
@PPeitsch PPeitsch closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ [Feature]: Increase test coverage to 100% for all modules

1 participant