refactor: simplify distillation data layout

This commit is contained in:
Jerry
2026-07-27 17:40:16 +08:00
parent 8895178844
commit c8dbc51549
34 changed files with 132 additions and 7791 deletions
@@ -363,12 +363,10 @@ class CadRouterTests(unittest.TestCase):
teacher_source = (
Path(__file__).resolve().parents[5]
/ "designir-pipeline"
/ "workspace"
/ "teacher"
/ "inbox"
/ "input"
/ "part.step"
)
with self.assertRaisesRegex(ValueError, "cannot read the teacher"):
with self.assertRaisesRegex(ValueError, "cannot read distillation input"):
route_module.route(
self.parse(
"修改这个零件",
@@ -377,6 +375,23 @@ class CadRouterTests(unittest.TestCase):
)
)
def test_private_run_artifact_is_rejected_as_edit_source(self) -> None:
run_source = (
Path(__file__).resolve().parents[5]
/ "designir-pipeline"
/ "runs"
/ "designir"
/ "part.designir.json"
)
with self.assertRaisesRegex(ValueError, "cannot read distillation input"):
route_module.route(
self.parse(
"修改这个零件",
"--edit-source",
str(run_source),
)
)
if __name__ == "__main__":
unittest.main()