Skip to content

test: add missing tests for get_filenames_in_commit with git_reference#1883

Closed
toroleapinc wants to merge 1 commit intocommitizen-tools:masterfrom
toroleapinc:test/issue-1860-get-filenames-git-reference
Closed

test: add missing tests for get_filenames_in_commit with git_reference#1883
toroleapinc wants to merge 1 commit intocommitizen-tools:masterfrom
toroleapinc:test/issue-1860-get-filenames-git-reference

Conversation

@toroleapinc
Copy link

Summary

Add test coverage for get_filenames_in_commit() when called with an explicit git_reference parameter. Previously only the error case (no reference) and an integration test existed.

New tests

  • test_get_filenames_in_commit: success case without git_reference
  • test_get_filenames_in_commit_with_git_reference: success case with explicit reference, verifying the correct git command is constructed
  • test_get_filenames_in_commit_error_with_git_reference: error case with explicit reference

Closes #1860

Add test coverage for get_filenames_in_commit() when called with an
explicit git_reference parameter. Previously only the error case and
the integration test (no git_reference) existed.

New tests:
- test_get_filenames_in_commit: success case without git_reference
- test_get_filenames_in_commit_with_git_reference: success case with
  explicit reference, verifying the correct git command is called
- test_get_filenames_in_commit_error_with_git_reference: error case
  with explicit reference

Closes commitizen-tools#1860

Signed-off-by: edvatar <88481784+toroleapinc@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Feb 27, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@bearomorphism
Copy link
Collaborator

Please answer the questions in PR description template and please fix the pipeline failure

@bearomorphism
Copy link
Collaborator

And we already assigned #1860 to another contributor. You should comment on the issue and ask if you can take the issue first.

@toroleapinc
Copy link
Author

@bearomorphism Thanks for the feedback! You're absolutely right - I should have checked the assignment status first and followed proper protocol.

I apologize for jumping ahead on issue #1860 without coordinating. I'll close this PR and comment on the issue to check if the assigned contributor needs any help or if they're still working on it.

I'll also make sure to follow the PR template properly if I submit any future contributions. Thanks for the guidance on the process!

@bearomorphism
Copy link
Collaborator

Closing as LLM generated PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing test for get_filenames_in_commit with git_reference

2 participants