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:351–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 box_from_string("{nope")
350
351 def test_box_from_string_toml(self):
352 assert box_from_string("a = 1", string_type="toml").to_dict() == {"a": 1}
353 with pytest.raises(BoxError, match="not TOML"):
354 box_from_string("= nope", string_type="toml")
355
356 def test_box_from_string_yaml(self):
357 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