test_q3_desktop_stress.py file-level

at sha256:a · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:6 fix(ISR): default require_independent_second_reviewer to require Opera… · aaronrene · Sep 2, 2026
1 """Stress tests for Track Q / Q3 Tauri desktop packaging."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from tests.fixtures.app import seed_app_repo
8 from tests.fixtures.desktop import make_desktop_launcher
9 from tools.desktop.banner import parse_startup_stderr
10
11
12 def test_repeated_launch_stop_cycles_leave_no_tmp_artifacts(tmp_path: Path) -> None:
13 seed_app_repo(tmp_path)
14 for cycle in range(5):
15 launcher = make_desktop_launcher(tmp_path, seed=False)
16 banner = launcher.start()
17 assert parse_startup_stderr(
18 [
19 "ok app listening\n",
20 f"url: {banner.url}\n",
21 f"session_credential: {banner.session_credential}\n",
22 f"csrf_token: {banner.csrf_token}\n",
23 ]
24 )
25 launcher.stop()
26
27 temps = list(tmp_path.rglob("*.overseer.tmp"))
28 assert temps == []