Skip to content

Add unit tests for workspace entity - #103

Open
kir1903 wants to merge 2 commits into
evrone:masterfrom
kir1903:master
Open

Add unit tests for workspace entity#103
kir1903 wants to merge 2 commits into
evrone:masterfrom
kir1903:master

Conversation

@kir1903

@kir1903 kir1903 commented Sep 8, 2026

Copy link
Copy Markdown

Added unit tests covering previously untested branches in toggl_python/entities/workspace.py,
toggl_python/entities/user.py and datetime serialization logic in TimeEntryRequest,
TimeEntryCreateRequest, MeTimeEntryQueryParams and SearchReportTimeEntriesRequest.

Coverage summary (pytest -m "not integration" --cov=toggl_python):

  • workspace.py: 24% → 99%
  • user.py: 25% → 98%
  • Total project coverage: 66.24% → 98.73%

kir1903 and others added 2 commits September 8, 2026 21:26
Covers the `serialize_datetimes` None-value branch in TimeEntryRequest,
TimeEntryCreateRequest, MeTimeEntryQueryParams and
SearchReportTimeEntriesRequest, which coverage showed as untested.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant