mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Significant perfomance improve about x10 more times. Replace pydantic to msgspec.
This commit is contained in:
parent
cf269e15f4
commit
b1ba862539
141 changed files with 695 additions and 617 deletions
|
|
@ -13,11 +13,18 @@ class TestTelegramMethodRemoveUnset:
|
|||
[
|
||||
[{}, set()],
|
||||
[{"foo": "bar"}, {"foo"}],
|
||||
[{"foo": "bar", "baz": sentinel.DEFAULT}, {"foo"}],
|
||||
[
|
||||
{
|
||||
"foo": "bar",
|
||||
},
|
||||
{"foo"},
|
||||
],
|
||||
],
|
||||
)
|
||||
def test_remove_unset(self, values, names):
|
||||
validated = TelegramMethod.remove_unset(values)
|
||||
import msgspec
|
||||
|
||||
validated = msgspec.to_builtins(values)
|
||||
assert set(validated.keys()) == names
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue