mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Add API methods testing prototype
This commit is contained in:
parent
b4a94d8441
commit
ef956f7ec2
4 changed files with 101 additions and 1 deletions
|
|
@ -0,0 +1,11 @@
|
|||
import pytest
|
||||
|
||||
from aiogram import Bot
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def bot():
|
||||
bot = MockedBot()
|
||||
Bot.set_current(bot)
|
||||
yield bot
|
||||
Loading…
Add table
Add a link
Reference in a new issue