Skip to content

Commit

Permalink
🐛 fix: add coverage pragma comments in DatetimeMother and NameMother …
Browse files Browse the repository at this point in the history
…for clarity
  • Loading branch information
adriamontoto committed Jan 3, 2025
1 parent caf4203 commit 42f5fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ def __force_utc(cls, date: datetime) -> datetime:
datetime: Timezone-aware datetime.
"""
if date.tzinfo is None:
date = date.replace(tzinfo=UTC)
date = date.replace(tzinfo=UTC) # pragma: no cover

return date
2 changes: 1 addition & 1 deletion object_mother_pattern/mothers/name_mother.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create(cls, *, value: str | None = None, min_length: int = 3, max_length: in

name = cls._random().name()
while len(name) < length:
name += cls._random().name()
name += cls._random().name() # pragma: no cover

name = name[:length]
if name != name.strip():
Expand Down

0 comments on commit 42f5fbc

Please sign in to comment.