Typing test (#24651)

This commit is contained in:
Asuka Minato 2025-08-28 10:36:39 +09:00 • committed by GitHub
commit 7995ff1410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 20 deletions

View file

@ -1,9 +1,11 @@
import datetime
import pytest
from libs.datetime_utils import naive_utc_now
def test_naive_utc_now(monkeypatch):
def test_naive_utc_now(monkeypatch: pytest.MonkeyPatch):
tz_aware_utc_now = datetime.datetime.now(tz=datetime.UTC)
def _now_func(tz: datetime.timezone | None) -> datetime.datetime: