Skip to content

test: replace obsolete dashboard-python fallback test with exit check#128

Merged
manager-identity[bot] merged 1 commit into
mainfrom
test/resolve-dashboard-python-exits
May 11, 2026
Merged

test: replace obsolete dashboard-python fallback test with exit check#128
manager-identity[bot] merged 1 commit into
mainfrom
test/resolve-dashboard-python-exits

Conversation

@manager-identity
Copy link
Copy Markdown
Contributor

Summary

  • scripts/pt.py:_resolve_dashboard_python was changed in commit 130d6aa to print a red error and sys.exit(1) when no venv exists, replacing the prior sys.executable fallback. The companion test test_launch_falls_back_to_sys_executable_when_no_venv_exists still asserted the old fallback path and was failing on main with SystemExit: 1.
  • Delete the broken assertion and replace it with test_launch_exits_when_no_venv_exists that locks in the new explicit-error behavior via pytest.raises(SystemExit) and excinfo.value.code == 1.

Test plan

  • tests/test_config_and_cron_fallbacks.py all 10 tests pass locally, including the new test_launch_exits_when_no_venv_exists.
  • Sibling test_launch_prefers_dot_venv_python (happy-path .venv discovery) still passes unchanged.
  • grep confirms the deleted test name has no other references in the repo.

Related

  • Closes #6115

… (#6115)

scripts/pt.py:_resolve_dashboard_python was changed in commit 130d6aa to
print a red error and sys.exit(1) when no venv exists, replacing the
prior sys.executable fallback. The companion test
test_launch_falls_back_to_sys_executable_when_no_venv_exists still
asserted the old fallback path and failed on main with SystemExit: 1.

Delete the broken assertion and replace it with one that locks in the
new explicit-error behaviour (pytest.raises(SystemExit), code == 1).
Sibling test_launch_prefers_dot_venv_python is unchanged and still
exercises the happy path.

Closes #6115.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@manager-identity manager-identity Bot merged commit 3d5303f into main May 11, 2026
2 checks passed
@manager-identity manager-identity Bot deleted the test/resolve-dashboard-python-exits branch May 11, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants