(self)
| 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} |
| 358 | assert box_from_string("- 1\n- 2\n", string_type="yaml").to_list() == [1, 2] |
| 359 | with pytest.raises(BoxError, match="not YAML"): |
| 360 | box_from_string("a: [1", string_type="yaml") |
| 361 | |
| 362 | def test_box_from_string_toon(self): |
| 363 | if not from_file.toon_available: |
nothing calls this directly
no test coverage detected