chore: lint

This commit is contained in:
Egor 2020-07-03 16:15:37 +05:00
parent d04e220fbb
commit 6e93facffc
8 changed files with 25 additions and 28 deletions

View file

@ -11,9 +11,7 @@ class TestGetChat:
@pytest.mark.asyncio
async def test_method(self, bot: MockedBot):
channel = ChatFactory(type=ChatType.CHANNEL)
prepare_result = bot.add_result_for(
GetChat, ok=True, result=channel
)
prepare_result = bot.add_result_for(GetChat, ok=True, result=channel)
response: Chat = await GetChat(chat_id=channel.id)
request: Request = bot.get_request()
@ -23,9 +21,7 @@ class TestGetChat:
@pytest.mark.asyncio
async def test_bot_method(self, bot: MockedBot):
channel = ChatFactory(type=ChatType.CHANNEL)
prepare_result = bot.add_result_for(
GetChat, ok=True, result=channel
)
prepare_result = bot.add_result_for(GetChat, ok=True, result=channel)
response: Chat = await bot.get_chat(chat_id=channel.id)
request: Request = bot.get_request()