mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
refactor: renamed getChatMembersCount to getChatMemberCount
This commit is contained in:
parent
d2422742e9
commit
277997f0f9
4 changed files with 29 additions and 20 deletions
|
|
@ -435,14 +435,14 @@ async def test_get_chat_administrators(bot: Bot):
|
|||
assert len(result) == 2
|
||||
|
||||
|
||||
async def test_get_chat_members_count(bot: Bot):
|
||||
async def test_get_chat_member_count(bot: Bot):
|
||||
""" getChatMembersCount method test """
|
||||
from .types.dataset import CHAT
|
||||
chat = types.Chat(**CHAT)
|
||||
count = 5
|
||||
|
||||
async with FakeTelegram(message_data=count):
|
||||
result = await bot.get_chat_members_count(chat_id=chat.id)
|
||||
result = await bot.get_chat_member_count(chat_id=chat.id)
|
||||
assert result == count
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue