mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Cover BaseBot context manager
This commit is contained in:
parent
b5ab2fd153
commit
cd12b54ec2
3 changed files with 24 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ class BaseSession(abc.ABC):
|
|||
raise Exception(response.description)
|
||||
|
||||
@abc.abstractmethod
|
||||
async def close(self):
|
||||
async def close(self): # pragma: no cover
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
|
|
|
|||
|
|
@ -165,13 +165,13 @@ class ListItem(Item):
|
|||
You can use &, | and + operators for that.
|
||||
"""
|
||||
|
||||
def add(self, other):
|
||||
def add(self, other): # pragma: no cover
|
||||
return self + other
|
||||
|
||||
def __get__(self, instance, owner):
|
||||
return ItemsList(self._value)
|
||||
|
||||
def __getitem__(self, item):
|
||||
def __getitem__(self, item): # pragma: no cover
|
||||
# Only for IDE. This method is never be called.
|
||||
return self._value
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue