mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Added full support of Bot API 6.4 (#1088)
* Remove warnings about pytest asyncio mode * Update Bot API to 6.4 * Bump version * Added changelog * Update translations
This commit is contained in:
parent
b93b75804c
commit
730485e43a
239 changed files with 2522 additions and 892 deletions
|
|
@ -14,8 +14,6 @@ from aiogram.methods import GetFile, GetMe
|
|||
from aiogram.types import File, PhotoSize
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
pytestmark = pytest.mark.asyncio
|
||||
|
||||
|
||||
class TestBot:
|
||||
def test_init(self):
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ from aiogram.methods import Request, TelegramMethod
|
|||
from aiogram.types import UNSET, InputFile
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
pytestmark = pytest.mark.asyncio
|
||||
|
||||
|
||||
class BareInputFile(InputFile):
|
||||
async def read(self, chunk_size: int):
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ from aiogram.methods import DeleteMessage, GetMe, TelegramMethod
|
|||
from aiogram.types import UNSET, User
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
pytestmark = pytest.mark.asyncio
|
||||
|
||||
|
||||
class CustomSession(BaseSession):
|
||||
async def close(self):
|
||||
|
|
|
|||
|
|
@ -1,15 +1,11 @@
|
|||
import datetime
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
||||
from aiogram.client.session.middlewares.request_logging import RequestLogging
|
||||
from aiogram.methods import GetMe, SendMessage
|
||||
from aiogram.types import Chat, Message, User
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
pytestmark = pytest.mark.asyncio
|
||||
|
||||
|
||||
class TestRequestLogging:
|
||||
async def test_use_middleware(self, bot: MockedBot, caplog):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue