MCPcopy
hub / github.com/msgspec/msgspec / test_any_dict

Method test_any_dict

tests/unit/test_convert.py:1154–1155  ·  view source on GitHub ↗
(self, dictcls)

Source from the content-addressed store, hash-verified

1152
1153class TestDict:
1154 def test_any_dict(self, dictcls):
1155 assert convert(dictcls({"one": 1, 2: "two"}), Any) == {"one": 1, 2: "two"}
1156
1157 def test_empty_dict(self, dictcls):
1158 assert convert(dictcls({}), dict) == {}

Callers

nothing calls this directly

Calls 1

dictclsFunction · 0.85

Tested by

no test coverage detected