Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Github Mock Handler #118

Merged
merged 4 commits into from
Nov 27, 2023
Merged

Refactor Github Mock Handler #118

merged 4 commits into from
Nov 27, 2023

Conversation

Dan7-7-7
Copy link
Collaborator

@Dan7-7-7 Dan7-7-7 commented Nov 22, 2023

As part of adding tests for updating the PR description it becomes a nuisance that the mock github handler takes in a set number and type of arguments. This is also less than ideal for the ClosePullRequest mock implementation. This PR changes the arguments into a list of strings so we can extend the mocks without this problem.

Along the way I also removed the unused output param from the handler methods. I couldn't see any reason not to, but I might be missing one?

@Dan7-7-7 Dan7-7-7 merged commit dae7e0c into main Nov 27, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants