(self)
| 335 | |
| 336 | class TestEdgeCases: |
| 337 | def test_missing_keys_and_paths(self): |
| 338 | with pytest.raises(BoxKeyError): |
| 339 | Box(camel_killer_box=True).set_comment("missingKey", "x") |
| 340 | dotted = Box({"a": 1, "l": [1]}, box_dots=True) |
| 341 | for key in ("nope.x", "a.x", "l[0].x", "l[5]", "l[x]", "l.x"): |
| 342 | with pytest.raises(BoxKeyError): |
| 343 | dotted.set_comment(key, "x") |
| 344 | with pytest.raises(BoxKeyError): |
| 345 | BoxList([1]).set_comment(1.5, "x") |
| 346 | |
| 347 | def test_delete_without_comments(self): |
| 348 | bx = Box(a=1) |
nothing calls this directly
no test coverage detected