__init__.py
python
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
| 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) |
File History
2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12
Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71…
Human
minor
⚠
8 days ago