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

Method test_bad_from_json

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

Source from the content-addressed store, hash-verified

561 assert dumped["Float"] == 0.1
562
563 def test_bad_from_json(self):
564 with pytest.raises(BoxError):
565 Box.from_json()
566
567 with pytest.raises(BoxError):
568 Box.from_json(json_string="[1]")
569
570 def test_bad_from_yaml(self):
571 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected