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++

pytest: a session config home, so no test can write or migrate the user's real Strata settings (#198 data-folder migration)

Niko1221b1f7b4ac3aee
diff --git a/conftest.py b/conftest.py
new file mode 100644
index 000000000..43fe5c5e7
--- /dev/null
+++ b/conftest.py
@@ -0,0 +1,9 @@
+"""pytest: setup.py's data-folder migration (#198) saves the data folder it settled on in the user's settings file
+(%APPDATA%\Strata\settings.json, ~/.config/strata/settings.json) and can MOVE model files from a folder it finds there.
+A test that reaches it must never touch the real file, so the whole session gets its own config home."""
+import os
+import tempfile
+
+_home = tempfile.mkdtemp(prefix="strata-pytest-config-")
+os.environ["APPDATA"] = _home
+os.environ["XDG_CONFIG_HOME"] = _home