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.

fix(tests): normalize expected Hub paths on Windows (#140)

Alphin Tome5da9dd1fe01
diff --git a/tests/test_download.py b/tests/test_download.py
index 4a34b3e7..9fd8f1f7 100644
--- a/tests/test_download.py
+++ b/tests/test_download.py
@@ -49,7 +49,9 @@ class DownloadTests(unittest.TestCase):
"encoder": "unused/offline", "head_layers": 0, "act_costs": {"act": 0},
"max_len": 64, "head_max_len": 32,
}))
- cls.runtime_files = {str(p.relative_to(cls.repo)) for p in cls.repo.rglob("*") if p.is_file()}
+ # Hub repository paths use '/' even when the fixture lives on Windows.
+ cls.runtime_files = {p.relative_to(cls.repo).as_posix()
+ for p in cls.repo.rglob("*") if p.is_file()}
for subfolder in ("multilingual", "typed-decisions", "variants/english"):
for filename in cls.runtime_files:
target = cls.repo / subfolder / filename