Files
Strata/tests/desktop
Niko1221 118e20757c Tests: fixtures stop reading the machine they run on (Windows, Linux, a Mac's /var)
Tests and fixtures only, no production code:
- markdown-crlf: the long text goes to the render child in a file, not argv (Windows cuts a command line at 32 KB).
- component-updates: the packaged-update test writes the program file under the name of the platform it runs on (strata-desktop.exe only on Windows).
- connector-setup: the shared-download test pins the installer's look for an installed cloudflared to an empty folder and waits for the request with a deadline; it hung for ever on a box that has cloudflared in PATH.
- chat-files: folders are made under the canonical temp path (a Mac's /var/folders is a refused system folder, /private/var is not).
- test_tester_readme: the version is read from Cargo.toml, bash is found by full path and given C:/ paths (Windows runs the WSL launcher for a bare 'bash').
- test_docker_entrypoint: the never-overwritten case sets ALLOW_DOWNLOAD=1 (the guard for older model files stops the start otherwise), plus a test of the guard.
- test_setup_download: the whole-file GET that Python before 3.13 sends after the HEAD redirect is not a piece; the not-preallocated bound is the full size.
- Windows: split engine and DeepSeek fit fixtures say Linux and NVIDIA (Runner.intel_chosen, sys.platform, _on_windows) instead of reading this PC; setup tests no longer download the engine; path flavour in mac/pictures; utf-8 for a help text; the sh stand-in demangler is skipped on Windows with a reason; update.lock cleanup; private files under STRATA_HOME; a Fake process with kill().
2026-11-07 13:31:45 +01:00
..