Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent 17cd284 commit e9ff80a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions coincidence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,17 @@ def with_fixed_datetime(fixed_datetime: datetime.datetime) -> Iterator:
with pytest.MonkeyPatch.context() as monkeypatch:
monkeypatch.setattr(
datetime.date,
"today",
lambda *args: datetime.date(
"today", lambda *args: datetime.date(
fixed_datetime.year,
fixed_datetime.month,
fixed_datetime.day,
)
fixed_datetime.day, )
)
monkeypatch.setattr(
datetime.datetime,
"today",
lambda *args: datetime.datetime(
"today", lambda *args: datetime.datetime(
fixed_datetime.year,
fixed_datetime.month,
fixed_datetime.day,
)
fixed_datetime.day, )
)
monkeypatch.setattr(datetime.datetime, "now", lambda *args: fixed_datetime)

Expand Down

0 comments on commit e9ff80a

Please sign in to comment.