(self)
| 184 | compile(code, "<test>", "exec") |
| 185 | |
| 186 | def test_memory_dataset_codegen(self): |
| 187 | frame = from_list([{"x": 1}]).map(prompt="p") |
| 188 | code = frame.to_python() |
| 189 | assert "from_list(" in code |
| 190 | assert "type=" not in code or "type='memory'" not in code |
| 191 | compile(code, "<test>", "exec") |
| 192 | |
| 193 | def test_csv_reader_codegen(self): |
| 194 | from docetl.frame import read_csv |