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

Method test_operators_with_boxes

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

Source from the content-addressed store, hash-verified

123 assert b.camel_case == 2
124
125 def test_operators_with_boxes(self):
126 assert (Box(a=1) + Box(b=2)).to_dict() == {"a": 1, "b": 2}
127 assert (Box(a=1) | Box(b=2)).to_dict() == {"a": 1, "b": 2}
128
129 def test_subtract_nested_keeps_differences(self):
130 result = Box(a={"x": 1, "y": 2}, b=1) - Box(a={"x": 1})

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
to_dictMethod · 0.80

Tested by

no test coverage detected