refactor: simplify distillation data layout
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user