mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added tests
This commit is contained in:
parent
ac53075005
commit
c839cea19b
1 changed files with 12 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ from aiogram.types import (
|
||||||
Document,
|
Document,
|
||||||
EncryptedCredentials,
|
EncryptedCredentials,
|
||||||
ForumTopicClosed,
|
ForumTopicClosed,
|
||||||
|
ForumTopicEdited,
|
||||||
ForumTopicCreated,
|
ForumTopicCreated,
|
||||||
ForumTopicReopened,
|
ForumTopicReopened,
|
||||||
Game,
|
Game,
|
||||||
|
|
@ -414,6 +415,16 @@ TEST_FORUM_TOPIC_CREATED = Message(
|
||||||
icon_color=0xFFD67E,
|
icon_color=0xFFD67E,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
TEST_FORUM_TOPIC_EDITED = Message(
|
||||||
|
message_id=42,
|
||||||
|
date=datetime.datetime.now(),
|
||||||
|
chat=Chat(id=42, type="private"),
|
||||||
|
from_user=User(id=42, is_bot=False, first_name="Test"),
|
||||||
|
forum_topic_created=ForumTopicEdited(
|
||||||
|
name="test_edited",
|
||||||
|
icon_color=0xFFD67E,
|
||||||
|
),
|
||||||
|
)
|
||||||
TEST_FORUM_TOPIC_CLOSED = Message(
|
TEST_FORUM_TOPIC_CLOSED = Message(
|
||||||
message_id=42,
|
message_id=42,
|
||||||
date=datetime.datetime.now(),
|
date=datetime.datetime.now(),
|
||||||
|
|
@ -484,6 +495,7 @@ class TestMessage:
|
||||||
[TEST_MESSAGE_DICE, ContentType.DICE],
|
[TEST_MESSAGE_DICE, ContentType.DICE],
|
||||||
[TEST_MESSAGE_WEB_APP_DATA, ContentType.WEB_APP_DATA],
|
[TEST_MESSAGE_WEB_APP_DATA, ContentType.WEB_APP_DATA],
|
||||||
[TEST_FORUM_TOPIC_CREATED, ContentType.FORUM_TOPIC_CREATED],
|
[TEST_FORUM_TOPIC_CREATED, ContentType.FORUM_TOPIC_CREATED],
|
||||||
|
[TEST_FORUM_TOPIC_EDITED, ContentType.FORUM_TOPIC_EDITED],
|
||||||
[TEST_FORUM_TOPIC_CLOSED, ContentType.FORUM_TOPIC_CLOSED],
|
[TEST_FORUM_TOPIC_CLOSED, ContentType.FORUM_TOPIC_CLOSED],
|
||||||
[TEST_FORUM_TOPIC_REOPENED, ContentType.FORUM_TOPIC_REOPENED],
|
[TEST_FORUM_TOPIC_REOPENED, ContentType.FORUM_TOPIC_REOPENED],
|
||||||
[TEST_MESSAGE_UNKNOWN, ContentType.UNKNOWN],
|
[TEST_MESSAGE_UNKNOWN, ContentType.UNKNOWN],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue