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