Skip to content

Commit

Permalink
🔨 refactor: update date generation method
Browse files Browse the repository at this point in the history
  • Loading branch information
adriamontoto committed Dec 21, 2024
1 parent 5184297 commit 019c58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_mother_pattern/mothers/base_mother.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def invalid_type(cls, remove_types: Iterable[type[Any]] | None = None) -> Any:
types.append(faker.date_time())

if date not in remove_types:
types.append(date.fromisoformat(faker.date()))
types.append(faker.date_object())

if UUID not in remove_types:
types.append(uuid4())
Expand Down

0 comments on commit 019c58f

Please sign in to comment.