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

Method test_bad_from_json

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

Source from the content-addressed store, hash-verified

512 assert dumped["Float"] == 0.1
513
514 def test_bad_from_json(self):
515 with pytest.raises(BoxError):
516 Box.from_json()
517
518 with pytest.raises(BoxError):
519 Box.from_json(json_string="[1]")
520
521 def test_bad_from_yaml(self):
522 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected