Test that unsupported statement types produce clear errors.
()
| 142 | |
| 143 | |
| 144 | def test_eval_unsupported_statements() -> None: |
| 145 | """Test that unsupported statement types produce clear errors.""" |
| 146 | ds = Dataset({"a": ("x", [1, 2, 3])}) |
| 147 | |
| 148 | # Augmented assignment is not supported |
| 149 | with pytest.raises(ValueError, match="Unsupported statement type"): |
| 150 | ds.eval("a += 1") |
| 151 | |
| 152 | |
| 153 | def test_eval_functions() -> None: |