MCPcopy Create free account
hub / github.com/nonebot/nonebot2 / test_exclude_unset

Function test_exclude_unset

tests/test_utils.py:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_exclude_unset():
38 assert exclude_unset({"a": 1, "b": UNSET, "c": None, "d": {"x": UNSET}}) == {
39 "a": 1,
40 "c": None,
41 "d": {},
42 }
43 assert exclude_unset([1, UNSET, None, {"x": UNSET}]) == [1, None, {}]
44 assert exclude_unset(UNSET) is None
45 assert exclude_unset(123) == 123
46
47
48def test_loguru_escape_tag():

Callers

nothing calls this directly

Calls 1

exclude_unsetFunction · 0.90

Tested by

no test coverage detected