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:
Alex Root Junior 2021-10-06 22:49:14 +03:00 committed by GitHub
parent 99c99cec78
commit 7405db2ad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 36 additions and 81 deletions

View file

@ -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,