(self)
| 195 | setattr(Box(), name, 1) |
| 196 | |
| 197 | def test_frozen(self): |
| 198 | bx = Box.from_yaml("a: 1 # kept\n", frozen_box=True) |
| 199 | assert bx.get_comment("a") == {"eol": "kept"} |
| 200 | with pytest.raises(BoxError, match="frozen"): |
| 201 | bx.set_comment("a", "x") |
| 202 | with pytest.raises(BoxError, match="frozen"): |
| 203 | bx.del_comment("a") |
| 204 | bl = BoxList([1], frozen_box=True) |
| 205 | with pytest.raises(BoxError, match="frozen"): |
| 206 | bl.set_comment(0, "x") |
| 207 | |
| 208 | |
| 209 | class TestKeepingCommentsInSync: |
nothing calls this directly
no test coverage detected