mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
19 lines
344 B
Python
19 lines
344 B
Python
import pytest
|
|
|
|
from aiogram import Bot
|
|
from tests.factories.chat import ChatFactory
|
|
from tests.mocked_bot import MockedBot
|
|
|
|
|
|
@pytest.fixture()
|
|
def bot():
|
|
bot = MockedBot()
|
|
token = Bot.set_current(bot)
|
|
yield bot
|
|
Bot.reset_current(token)
|
|
bot.me.invalidate(bot)
|
|
|
|
|
|
@pytest.fixture()
|
|
def private_chat():
|
|
return ChatFactory()
|