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

@ -10,8 +10,6 @@ from aiogram.dispatcher.event.handler import HandlerObject
from aiogram.handlers import BaseHandler
from aiogram.types import Chat, Message, Update
pytestmark = pytest.mark.asyncio
class MyHandler(BaseHandler):
async def handle(self) -> Any:

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import CallbackQueryHandler
from aiogram.types import CallbackQuery, User
pytestmark = pytest.mark.asyncio
class TestCallbackQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,13 +1,9 @@
import datetime
from typing import Any
import pytest
from aiogram.handlers import ChatMemberHandler
from aiogram.types import Chat, ChatMemberMember, ChatMemberUpdated, User
pytestmark = pytest.mark.asyncio
class TestChatMemberUpdated:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import ChosenInlineResultHandler
from aiogram.types import ChosenInlineResult, User
pytestmark = pytest.mark.asyncio
class TestChosenInlineResultHandler:
async def test_attributes_aliases(self):

View file

@ -1,11 +1,7 @@
from typing import Any
import pytest
from aiogram.handlers import ErrorHandler
pytestmark = pytest.mark.asyncio
class TestErrorHandler:
async def test_extensions(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import InlineQueryHandler
from aiogram.types import InlineQuery, User
pytestmark = pytest.mark.asyncio
class TestCallbackQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,14 +1,10 @@
import datetime
from typing import Any
import pytest
from aiogram.filters import CommandObject
from aiogram.handlers import MessageHandler, MessageHandlerCommandMixin
from aiogram.types import Chat, Message, User
pytestmark = pytest.mark.asyncio
class MyHandler(MessageHandler):
async def handle(self) -> Any:

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import PollHandler
from aiogram.types import Poll, PollOption
pytestmark = pytest.mark.asyncio
class TestShippingQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import PreCheckoutQueryHandler
from aiogram.types import PreCheckoutQuery, User
pytestmark = pytest.mark.asyncio
class TestPreCheckoutQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import ShippingQueryHandler
from aiogram.types import ShippingAddress, ShippingQuery, User
pytestmark = pytest.mark.asyncio
class TestShippingQueryHandler:
async def test_attributes_aliases(self):