refactor: remove redundant pytest marks (#654)

This commit is contained in:
Oleg A 2021-08-03 23:40:14 +03:00 committed by GitHub
parent fff33e4ac9
commit f2f276b8cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 221 additions and 256 deletions

View file

@ -4,9 +4,10 @@ from aiogram.methods import Request, UploadStickerFile
from aiogram.types import BufferedInputFile, File
from tests.mocked_bot import MockedBot
pytestmark = pytest.mark.asyncio
class TestUploadStickerFile:
@pytest.mark.asyncio
async def test_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(
UploadStickerFile, ok=True, result=File(file_id="file id", file_unique_id="file id")
@ -19,7 +20,6 @@ class TestUploadStickerFile:
assert request.method == "uploadStickerFile"
assert response == prepare_result.result
@pytest.mark.asyncio
async def test_bot_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(
UploadStickerFile, ok=True, result=File(file_id="file id", file_unique_id="file id")