Skip to content

Conversation

@were
Copy link
Contributor

@were were commented Jan 23, 2026

Summary

Eliminated the redundant test helper file tests/helpers-open-issue.sh which only sourced tests/helpers-gh-mock.sh without providing any additional functionality. This consolidation reduces maintenance overhead and unnecessary indirection.

Changes

  • Modified tests/e2e/test-open-issue-with-draft.sh:5 to source helpers-gh-mock.sh directly
  • Modified tests/e2e/test-open-issue-without-draft.sh:5 to source helpers-gh-mock.sh directly
  • Modified tests/e2e/test-open-issue-update-mode.sh:5 to source helpers-gh-mock.sh directly
  • Modified tests/e2e/test-open-issue-update-maintains-format.sh:5 to source helpers-gh-mock.sh directly
  • Modified tests/e2e/test-open-issue-draft-non-plan.sh:5 to source helpers-gh-mock.sh directly
  • Deleted tests/helpers-open-issue.sh (7-line redundant wrapper)

Testing

  • All 5 affected e2e tests pass with identical behavior
  • Full test suite (make test-fast) passes with 45/45 shell tests and 99/99 Python tests
  • No functional changes - purely structural refactoring

Related Issue

Closes #595

Remove tests/helpers-open-issue.sh which only sourced helpers-gh-mock.sh
without adding functionality. Update 5 e2e tests to source the mock
helper directly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@were were added the agentize:pr PR created by agentize label Jan 23, 2026
@were were merged commit 3872f38 into main Jan 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentize:pr PR created by agentize

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plan][refactor]: Consolidate test helper files helpers-gh-mock.sh and helpers-open-issue.sh

2 participants