Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

@google-labs-jules google-labs-jules bot commented Aug 22, 2025

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.

This PR also includes a fix to requirements.txt to resolve a dependency conflict with the project's formatters.

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 in a corrected environment.
  • 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

Addresses #29 (Part 1)

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.
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.

refactor(deps): Remove formatters from production dependencies

Removes `black` and `isort` from `requirements.txt` to resolve a version conflict with the development dependencies and the pre-commit configuration. This ensures a consistent formatting environment.
@codecov
Copy link

codecov bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PPeitsch PPeitsch linked an issue Aug 22, 2025 that may be closed by this pull request
1 task
@PPeitsch PPeitsch marked this pull request as ready for review August 22, 2025 20:40
Copy link
Owner

@PPeitsch PPeitsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

google-labs-jules bot and others added 2 commits August 22, 2025 20:59
- Reverts accidental changes from a previous task.
- Adds release notes for the test coverage increase in `manual_entry.py`.
- Updates the release comparison links.
Copy link
Owner

@PPeitsch PPeitsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@PPeitsch PPeitsch merged commit 1cb6ece into main Aug 22, 2025
2 checks passed
@PPeitsch PPeitsch deleted the feature/increase-coverage-manual-entry branch August 22, 2025 21:04
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

2 participants