MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_dotted_set_without_parent

Method test_dotted_set_without_parent

test/test_coverage_paths.py:83–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 assert b.to_dict() == {"new": {"key": 1}}
82
83 def test_dotted_set_without_parent(self):
84 with pytest.raises(BoxKeyError, match="has no attribute a"):
85 Box(box_dots=True)["a.b"] = 1
86
87 def test_dotted_paths_through_non_containers(self):
88 b = Box({"a": 5}, box_dots=True)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected