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

Method test_update_rejects_multiple_sources

test/test_box.py:333–339  ·  view source on GitHub ↗
(self, kwargs)

Source from the content-addressed store, hash-verified

331
332 @pytest.mark.parametrize("kwargs", [{}, {"mode": "override"}])
333 def test_update_rejects_multiple_sources(self, kwargs):
334 bx = Box(keep=True)
335
336 with pytest.raises(TypeError, match="update expected at most 1 argument"):
337 bx.update({"first": 1}, {"second": 2}, **kwargs)
338
339 assert bx.to_dict() == {"keep": True}
340
341 def test_update_source_and_keywords_frozen(self):
342 bx = Box(keep=True, frozen_box=True)

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
to_dictMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected