mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed tests, bump butcher
This commit is contained in:
parent
b1b5cbb2cd
commit
447f5799b7
4 changed files with 8 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ import pytest
|
|||
from aiogram import Bot
|
||||
from aiogram.client.session.base import BaseSession, TelegramType
|
||||
from aiogram.client.telegram import PRODUCTION, TelegramAPIServer
|
||||
from aiogram.enums import ChatType, TopicIconColor
|
||||
from aiogram.exceptions import (
|
||||
ClientDecodeError,
|
||||
RestartingTelegram,
|
||||
|
|
@ -91,6 +92,8 @@ class TestBaseSession:
|
|||
assert session.prepare_value(now) == str(round(now.timestamp()))
|
||||
assert isinstance(session.prepare_value(datetime.timedelta(minutes=2)), str)
|
||||
assert session.prepare_value(42) == "42"
|
||||
assert session.prepare_value(ChatType.PRIVATE) == "private"
|
||||
assert session.prepare_value(TopicIconColor.RED) == "16478047"
|
||||
|
||||
def test_clean_json(self):
|
||||
session = CustomSession()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue