mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Enable Python 3.10 for tests (#719)
* Try to test on Python 3.10 * Prevent to YAML type cast * Bump poetry * Removed async_lru * Disable fail-fast on tests * Fixed typing * Added patch-notes
This commit is contained in:
parent
99c99cec78
commit
7405db2ad3
11 changed files with 36 additions and 81 deletions
|
|
@ -5,7 +5,7 @@ from aiogram import Bot
|
|||
from aiogram.client.session.base import BaseSession
|
||||
from aiogram.methods import TelegramMethod
|
||||
from aiogram.methods.base import Request, Response, TelegramType
|
||||
from aiogram.types import UNSET, ResponseParameters
|
||||
from aiogram.types import UNSET, ResponseParameters, User
|
||||
|
||||
|
||||
class MockedSession(BaseSession):
|
||||
|
|
@ -46,6 +46,14 @@ class MockedBot(Bot):
|
|||
|
||||
def __init__(self, **kwargs):
|
||||
super(MockedBot, self).__init__("42:TEST", session=MockedSession(), **kwargs)
|
||||
self._me = User(
|
||||
id=self.id,
|
||||
is_bot=True,
|
||||
first_name="FirstName",
|
||||
last_name="LastName",
|
||||
username="tbot",
|
||||
language_code="uk-UA",
|
||||
)
|
||||
|
||||
def add_result_for(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue