MCPcopy
hub / github.com/ucbepic/docetl / test_multiline_prompt

Method test_multiline_prompt

tests/test_builder.py:151–159  ·  view source on GitHub ↗
(self, sample_input)

Source from the content-addressed store, hash-verified

149 compile(code, "<test>", "exec")
150
151 def test_multiline_prompt(self, sample_input):
152 frame = (
153 read_json(sample_input)
154 .map("op", prompt="Line 1\nLine 2\nLine 3",
155 output={"schema": {"x": "string"}})
156 )
157 code = frame.to_python()
158 assert '"""' in code
159 compile(code, "<test>", "exec")
160
161 def test_multi_op_step_codegen(self, tmp_dir):
162 config_path = os.path.join(tmp_dir, "multi.yaml")

Callers

nothing calls this directly

Calls 3

read_jsonFunction · 0.90
to_pythonMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected