Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

test(rust): expect routing regeneration to also write the differential corpus

kevin-gatimuf1d9e9895809
diff --git a/laya-rust/tools/test_ci_tools.py b/laya-rust/tools/test_ci_tools.py
index 487e4f84..535c4701 100644
--- a/laya-rust/tools/test_ci_tools.py
+++ b/laya-rust/tools/test_ci_tools.py
@@ -115,8 +115,11 @@ class ExportCacheTests(unittest.TestCase):
regen, "run"
) as run, patch.object(regen.shutil, "rmtree"):
self.assertEqual(0, regen.main())
- self.assertIn("dump_routing_golden.py", run.call_args.args[0][1])
- self.assertIn("--force", run.call_args.args[0])
+ calls = [c.args[0] for c in run.call_args_list]
+ self.assertEqual(2, len(calls))
+ self.assertIn("dump_routing_golden.py", calls[0][1])
+ self.assertIn("--force", calls[0])
+ self.assertIn("dump_differential_golden.py", calls[1][1])
def test_repr_regeneration_needs_no_models(self):
with patch("sys.argv", ["regen", "--checkpoint", "repr"]), patch.object(