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

Method test_add_two_boxlists

test/test_box_list.py:777–780  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

775 assert result.box_options["box_dots"] is True
776
777 def test_add_two_boxlists(self):
778 result = BoxList([{"a": 1}]) + BoxList([{"b": 2}])
779 assert isinstance(result, BoxList)
780 assert result.to_list() == [{"a": 1}, {"b": 2}]
781
782 def test_add_non_list_raises(self):
783 with pytest.raises(BoxTypeError):

Callers

nothing calls this directly

Calls 2

BoxListClass · 0.90
to_listMethod · 0.80

Tested by

no test coverage detected