mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Remove kwargs copy in TelegramEventObserver.trigger and remove __deepcopy__ method from AiohttpSession
This commit is contained in:
parent
824b672513
commit
b61cc04e9a
3 changed files with 2 additions and 25 deletions
|
|
@ -123,11 +123,3 @@ class TestAiohttpSession:
|
|||
assert session == ctx
|
||||
mocked_close.awaited_once()
|
||||
mocked_create_session.awaited_once()
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_deepcopy(self):
|
||||
# Session should be copied without aiohttp.ClientSession
|
||||
async with AiohttpSession() as session:
|
||||
cloned_session = copy.deepcopy(session)
|
||||
assert cloned_session != session
|
||||
assert cloned_session._session is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue