Update tests

This commit is contained in:
Alex Root Junior 2020-01-11 19:56:38 +02:00
parent ffb0cdf88f
commit d2d4f337fb
16 changed files with 170 additions and 40 deletions

View file

@ -8,7 +8,9 @@ from tests.mocked_bot import MockedBot
class TestGetFile:
@pytest.mark.asyncio
async def test_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(GetFile, ok=True, result=File(file_id="file id"))
prepare_result = bot.add_result_for(
GetFile, ok=True, result=File(file_id="file id", file_unique_id="file id")
)
response: File = await GetFile(file_id="file id")
request: Request = bot.get_request()
@ -17,7 +19,9 @@ class TestGetFile:
@pytest.mark.asyncio
async def test_bot_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(GetFile, ok=True, result=File(file_id="file id"))
prepare_result = bot.add_result_for(
GetFile, ok=True, result=File(file_id="file id", file_unique_id="file id")
)
response: File = await bot.get_file(file_id="file id")
request: Request = bot.get_request()