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 second 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/time_log.py module, increasing its test coverage from 88% to 100%.

  • Added 2 new tests to tests/test_routes.py to cover the logic for fetching absence days and to test the generic exception handler.

Type of Change

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

Testing

  • All 73 tests in the suite pass.
  • The coverage for app/routes/time_log.py has been verified to be 100%.
  • The overall project coverage has increased from 94% to 95%.

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 2)

This commit increases the test coverage for the `app/routes/time_log.py` module from 88% to 100%.

- Adds a test for fetching monthly logs that include absence days.
- Adds a test to ensure the generic exception handler is working correctly.

This is the second part of the effort to address issue #29.
@PPeitsch PPeitsch marked this pull request as ready for review August 22, 2025 21:24
@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 merged commit 6bf5cf0 into main Aug 22, 2025
2 checks passed
@PPeitsch PPeitsch deleted the feature/increase-coverage-time-log branch August 22, 2025 21:42
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.

2 participants