()
| 38 | |
| 39 | |
| 40 | def test_immutable_option(): |
| 41 | opt = Option("A_FAKE_OPTION", "default-value", mutable=False) |
| 42 | assert not opt.mutable |
| 43 | with pytest.raises(TypeError, match="cannot be modified after initial load"): |
| 44 | opt.current = "a-new-value" |
| 45 | with pytest.raises(TypeError, match="cannot be modified after initial load"): |
| 46 | opt.unset() |
| 47 | |
| 48 | |
| 49 | def test_option_reset(): |