mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Bot API 6.4 (#1088)
* Remove warnings about pytest asyncio mode * Update Bot API to 6.4 * Bump version * Added changelog * Update translations
This commit is contained in:
parent
b93b75804c
commit
730485e43a
239 changed files with 2522 additions and 892 deletions
|
|
@ -1,12 +1,9 @@
|
|||
import pytest
|
||||
|
||||
from aiogram.methods import CreateInvoiceLink, Request
|
||||
from aiogram.types import LabeledPrice
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
|
||||
class TestCreateInvoiceLink:
|
||||
@pytest.mark.asyncio
|
||||
async def test_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(
|
||||
CreateInvoiceLink, ok=True, result="https://t.me/invoice/example"
|
||||
|
|
@ -24,7 +21,6 @@ class TestCreateInvoiceLink:
|
|||
assert request.method == "createInvoiceLink"
|
||||
assert response == prepare_result.result
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_bot_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(
|
||||
CreateInvoiceLink, ok=True, result="https://t.me/invoice/example"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue