Files
mtusi2026lab2/student-tests/fakes.py
T
Artyom 6d8b76b447
Application / Линт, типы и собственные тесты (pull_request) Canceled after 0s
Application / Стенд Compose, smoke, рестарт и отказы зависимостей (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab2
2026-10-30 12:32:42 +03:00

24 lines
539 B
Python

from datetime import datetime, timedelta
from typing import Any
class NullLogger:
__slots__ = ()
def info(self, event: str, /, **fields: Any) -> None: ...
def warning(self, event: str, /, **fields: Any) -> None: ...
def error(self, event: str, /, **fields: Any) -> None: ...
class FrozenClock:
__slots__ = ("_current",)
def __init__(self, start: datetime) -> None:
self._current = start
def now(self) -> datetime:
self._current += timedelta(microseconds=1)
return self._current