Add prototype of class-based handlers

This commit is contained in:
Alex Root Junior 2019-12-03 00:03:15 +02:00
parent 2a731f7ce2
commit b82a1a6fb0
11 changed files with 178 additions and 8 deletions

View file

@ -7,5 +7,6 @@ from tests.mocked_bot import MockedBot
@pytest.fixture()
def bot():
bot = MockedBot()
Bot.set_current(bot)
token = Bot.set_current(bot)
yield bot
Bot.reset_current(token)