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

@ -7,8 +7,6 @@ import pytest
from aiogram.dispatcher.event.event import EventObserver
from aiogram.dispatcher.event.handler import HandlerObject
pytestmark = pytest.mark.asyncio
async def my_handler(value: str, index: int = 0) -> Any:
return value

View file

@ -11,8 +11,6 @@ from aiogram.handlers import BaseHandler
from aiogram.types import Update
from aiogram.utils.warnings import Recommendation
pytestmark = pytest.mark.asyncio
def callback1(foo: int, bar: int, baz: int):
return locals()

View file

@ -12,9 +12,6 @@ from aiogram.dispatcher.router import Router
from aiogram.filters import Filter
from aiogram.types import Chat, Message, User
pytestmark = pytest.mark.asyncio
# TODO: Test middlewares in routers tree