test_q3_desktop_stress.py python
28 lines 895 B
Raw
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 1 day ago
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 == []
File History 1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 1 day ago