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

Method test_update_empty_source_and_keywords

test/test_box.py:325–330  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

323 assert bx.workers[0].id == 1
324
325 def test_update_empty_source_and_keywords(self):
326 bx = Box(keep=True)
327
328 assert bx.update({}, mode="override") is None
329
330 assert bx.to_dict() == {"keep": True, "mode": "override"}
331
332 @pytest.mark.parametrize("kwargs", [{}, {"mode": "override"}])
333 def test_update_rejects_multiple_sources(self, kwargs):

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
to_dictMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected