Fixed timestamp

This commit is contained in:
Alex Root Junior 2023-03-11 20:26:26 +02:00
parent 0cb190e928
commit c26ff48f70
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -4,6 +4,7 @@ from typing import Any, AsyncContextManager, AsyncGenerator, Optional
from unittest.mock import AsyncMock, patch
import pytest
from pytz import utc
from aiogram import Bot
from aiogram.client.session.base import BaseSession, TelegramType
@ -99,8 +100,10 @@ class TestBaseSession:
[{"test": "pass", "number": 42, "spam": None}, '{"test": "pass", "number": 42}'],
[{"foo": {"test": "pass", "spam": None}}, '{"foo": {"test": "pass"}}'],
[
datetime.datetime(year=2017, month=5, day=17, hour=4, minute=11, second=42),
"1494983502",
datetime.datetime(
year=2017, month=5, day=17, hour=4, minute=11, second=42, tzinfo=utc
),
"1494994302",
],
],
)