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

Method test_box_from_string_toml

test/test_coverage_paths.py:365–368  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 box_from_string("{nope")
364
365 def test_box_from_string_toml(self):
366 assert box_from_string("a = 1", string_type="toml").to_dict() == {"a": 1}
367 with pytest.raises(BoxError, match="not TOML"):
368 box_from_string("= nope", string_type="toml")
369
370 def test_box_from_string_yaml(self):
371 assert box_from_string("a: 1", string_type="yaml").to_dict() == {"a": 1}

Callers

nothing calls this directly

Calls 2

box_from_stringFunction · 0.90
to_dictMethod · 0.80

Tested by

no test coverage detected