Skip to content

assert params and body in repositories_test #96

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

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

juruen
Copy link
Collaborator

@juruen juruen commented Apr 4, 2025

Context

Follow-up PR to #95 to continue improving our test coverage. These changes assert that the request parameters and body are correctly handled in the repositories_test file.

@Copilot Copilot AI review requested due to automatic review settings April 4, 2025 10:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances test coverage in the repository tests by asserting that request parameters and request bodies are correctly handled.

  • Replaces mock.WithRequestMatch with mock.WithRequestMatchHandler across multiple test cases.
  • Introduces explicit assertions for query parameters and request bodies in tests.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@juruen juruen marked this pull request as draft April 4, 2025 10:33
@juruen juruen force-pushed the juruen/repository-test branch 2 times, most recently from cc1bc67 to ae4cbd0 Compare April 4, 2025 10:38
@juruen juruen changed the title assert params and body in repository_test assert params and body in repositories_test Apr 4, 2025
@juruen juruen marked this pull request as ready for review April 4, 2025 10:49
@juruen juruen force-pushed the juruen/repository-test branch from ae4cbd0 to 5c5f42f Compare April 4, 2025 11:58
@williammartin williammartin merged commit ccaedb6 into main Apr 4, 2025
16 checks passed
@williammartin williammartin deleted the juruen/repository-test branch April 4, 2025 12:32
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull request Apr 12, 2025
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.

3 participants