mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
PR #484 added branch-awareness to ``scripts/sync-plugin-versions.py`` (no-op on feature branches unless ``HEADROOM_SYNC_VERSIONS=1``). The existing ``test_main_runs_plugin_only_version_sync`` test broke because it didn't account for the new ``_should_sync`` gate — on a feature branch the main() function early-returns and the subprocess mock was never invoked, but actually the test broke earlier because ``_current_branch`` calls ``subprocess.run(..., capture_output=True, text=True, check=False)`` and the test's lambda only accepted ``(command, cwd, check)``. Fix: force ``_should_sync`` True in the existing test so it locks the run-path, then add 4 new tests covering the branch-aware logic itself (env override, main vs feature, git-unavailable defensive no-op). |
||
|---|---|---|
| .. | ||
| test_changelog_gen.py | ||
| test_sync_plugin_versions.py | ||
| test_version_sync.py | ||