Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

tools/test_setup_mac: the --source test no longer runs setup.data_folder() for real

Niko122180bed76c8a06
diff --git a/tools/test_setup_mac.py b/tools/test_setup_mac.py
index 5a1e6c15b..900180a4e 100644
--- a/tools/test_setup_mac.py
+++ b/tools/test_setup_mac.py
@@ -261,7 +261,11 @@ class Source(unittest.TestCase):
self.addCleanup(env.stop)
os.environ.pop("STRATA_SOURCE", None)
warnings = []
+ # setup.data_folder() is mocked: the real one moves the model files of this checkout and of the data folder in
+ # the user's settings.json into --data-dir, and saves that dir as the new data folder; with a temp dir that
+ # deletes the models on exit and leaves settings.json pointing at a deleted directory
with tempfile.TemporaryDirectory() as tmp, \
+ mock.patch.object(setup, "data_folder", lambda requested: (Path(tmp), [])), \
mock.patch("subprocess.run", fake_run(M5)), \
mock.patch.object(setup, "warn", lambda *a, **k: warnings.append(" ".join(str(x) for x in a))), \
mock.patch.object(setup, "say", lambda *a, **k: None), \