Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Have you read the Contributing Guidelines?

Addresses #29 (Part 3)

Description

This PR is the third 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_summary.py module, increasing its test coverage from 87% to 98%.

  • Added 6 new tests to tests/test_routes.py to cover edge cases in the daily summary (absences, holidays, weekends) and to test the exception handlers for both the daily and monthly summary routes.

Type of Change

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

Testing

  • All 78 tests in the suite pass.
  • The coverage for app/routes/time_summary.py has been verified to be 98%.
  • The overall project coverage has increased from 95% to 96%.

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/time_summary.py` module from 87% to 98%.

- Adds tests for daily summary on absence, holiday, and weekend days.
- Adds tests for the exception handlers in both daily and monthly summary routes.

This is the third part of the effort to address issue #29.
@PPeitsch PPeitsch closed this Aug 22, 2025
@PPeitsch PPeitsch deleted the feature/increase-coverage-time-log branch August 22, 2025 22:28
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