mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
fix(aiohttp-session): respect UNSET sentinel (#387)
* fix(aiohttp-session): respect UNSET sentinel check if value is `UNSET` while building http request. * Cover UNSET by tests Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
This commit is contained in:
parent
85265a34cd
commit
566b7ff282
2 changed files with 4 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ from aresponses import ResponsesMockServer
|
|||
from aiogram import Bot
|
||||
from aiogram.api.client.session.aiohttp import AiohttpSession
|
||||
from aiogram.api.methods import Request, TelegramMethod
|
||||
from aiogram.api.types import InputFile
|
||||
from aiogram.api.types import InputFile, UNSET
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
try:
|
||||
|
|
@ -117,6 +117,7 @@ class TestAiohttpSession:
|
|||
"str": "value",
|
||||
"int": 42,
|
||||
"bool": True,
|
||||
"unset": UNSET,
|
||||
"null": None,
|
||||
"list": ["foo"],
|
||||
"dict": {"bar": "baz"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue