Remove warnings about pytest asyncio mode

This commit is contained in:
Alex Root Junior 2022-12-30 16:10:06 +02:00
parent a0dbbcfd5d
commit 655b3a2d48
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
134 changed files with 30 additions and 517 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):