|
15 | 15 | str(name) |
16 | 16 | for name in [ |
17 | 17 | pathlib.Path("examples") / "demo" / "2-teacher.pdl", # TODO: check why |
| 18 | + pathlib.Path("examples") / "talk" / "8-tools.pdl", # TODO: check why |
18 | 19 | pathlib.Path("examples") / "talk" / "11-sdg.pdl", # TODO: check why |
19 | 20 | pathlib.Path("examples") / "teacher" / "teacher.pdl", # TODO: check why |
20 | | - pathlib.Path("examples") / "demo" / "3-weather.pdl", |
| 21 | + pathlib.Path("examples") / "tools" / "calc.pdl", # TODO: check why |
21 | 22 | pathlib.Path("examples") / "tutorial" / "calling_apis.pdl", |
22 | 23 | pathlib.Path("examples") / "cldk" / "cldk-assistant.pdl", |
23 | | - pathlib.Path("examples") / "weather" / "weather.pdl", |
24 | 24 | pathlib.Path("examples") / "talk" / "10-multi-agent.pdl", |
25 | 25 | pathlib.Path("examples") / "gsm8k" / "gsmhard-bugs.pdl", |
26 | 26 | pathlib.Path("examples") / "gsm8k" / "math-base.pdl", |
|
46 | 46 | pathlib.Path("examples") / "tools" / "calc.pdl", |
47 | 47 | pathlib.Path("examples") / "tutorial" / "include.pdl", |
48 | 48 | pathlib.Path("examples") / "hello" / "hello-roles-array.pdl", |
| 49 | + pathlib.Path("examples") / "weather" / "weather.pdl", |
| 50 | + pathlib.Path("examples") / "demo" / "3-weather.pdl", |
49 | 51 | ] |
50 | 52 | } |
51 | 53 |
|
@@ -86,6 +88,14 @@ class InputsType: |
86 | 88 | pathlib.Path("examples") |
87 | 89 | / "hello" |
88 | 90 | / "hello-data.pdl": InputsType(scope={"something": "ABC"}), |
| 91 | + pathlib.Path("examples") |
| 92 | + / "weather" |
| 93 | + / "weather.pdl": InputsType(stdin="What is the weather in Yorktown Heights?\n"), |
| 94 | + pathlib.Path("examples") |
| 95 | + / "demo" |
| 96 | + / "3-weather.pdl": InputsType( |
| 97 | + stdin="What is the weather in Yorktown Heights?\n" |
| 98 | + ), |
89 | 99 | }.items() |
90 | 100 | } |
91 | 101 |
|
@@ -174,7 +184,9 @@ def test_valid_programs(capsys, monkeypatch) -> None: |
174 | 184 | } |
175 | 185 | except PDLParseError: |
176 | 186 | actual_parse_error |= {str(pdl_file_name)} |
177 | | - except PDLRuntimeError: |
| 187 | + except PDLRuntimeError as exc: |
| 188 | + if str(pdl_file_name) not in set(str(p) for p in EXPECTED_RUNTIME_ERROR): |
| 189 | + print(exc) # unexpected error: breakpoint |
178 | 190 | actual_runtime_error |= {str(pdl_file_name)} |
179 | 191 | # Parse errors |
180 | 192 | expected_parse_error = set(str(p) for p in EXPECTED_PARSE_ERROR) |
|
0 commit comments