MCPcopy
hub / github.com/WEIFENG2333/VideoCaptioner / test_get_nested

Method test_get_nested

tests/test_cli/test_config.py:40–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38
39class TestNestedAccess:
40 def test_get_nested(self):
41 d = {"a": {"b": {"c": 42}}}
42 assert _get_nested(d, "a.b.c") == 42
43
44 def test_get_nested_missing(self):
45 assert _get_nested({"a": 1}, "b", "default") == "default"

Callers

nothing calls this directly

Calls 1

_get_nestedFunction · 0.90

Tested by

no test coverage detected