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