__init__.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 """Fixture helpers for Track Q / Q3 desktop packaging tests."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from tests.fixtures.app import free_port, seed_app_repo
8 from tests.support import KIT_ROOT
9 from tools.desktop.launcher import DesktopLauncher, resolve_kit_root, resolve_repo_root
10
11
12 def make_desktop_launcher(
13 tmp_path: Path,
14 *,
15 port: int | None = None,
16 seed: bool = True,
17 ) -> DesktopLauncher:
18 """Seed a repo and return a launcher bound to an ephemeral port."""
19 if seed:
20 seed_app_repo(tmp_path)
21 chosen = port or free_port()
22 kit = resolve_kit_root(KIT_ROOT)
23 repo = resolve_repo_root(kit=kit, explicit=tmp_path)
24 return DesktopLauncher(kit_root_path=kit, repo_root=repo, port=chosen)