(self)
| 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} |
nothing calls this directly
no test coverage detected