chore: mv bot fixture

This commit is contained in:
Oleg A 2022-01-10 11:29:42 +03:00
parent b364654a08
commit c7bb528cd9
4 changed files with 17 additions and 25 deletions

View file

@ -8,16 +8,8 @@ from . import FakeTelegram, TOKEN
pytestmark = pytest.mark.asyncio
@pytest.fixture(name='bot')
async def bot_fixture():
""" Bot fixture """
_bot = Bot(TOKEN, parse_mode=types.ParseMode.HTML)
yield _bot
await _bot.close()
@pytest.fixture()
async def message(bot):
async def message(bot: Bot):
"""
Message fixture
:param bot: Telegram bot fixture