Skip to content

test: add advanced test coverage for GitHub API tools#192

Closed
amussara wants to merge 1 commit into
entrius:mainfrom
amussara:github-api-advanced-coverage
Closed

test: add advanced test coverage for GitHub API tools#192
amussara wants to merge 1 commit into
entrius:mainfrom
amussara:github-api-advanced-coverage

Conversation

@amussara

Copy link
Copy Markdown

Add comprehensive tests for github_api_tools.py covering:

  • GraphQL query execution with retry/backoff logic
  • PR validation rules (should_skip_merged_pr)
  • Branch pattern matching
  • File content batch fetching (base/head)
  • Account age calculation
  • Open/closed PR categorization

Mocks all HTTP calls for reliable, fast test execution.

Summary

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Add comprehensive tests for github_api_tools.py covering:
- GraphQL query execution with retry/backoff logic
- PR validation rules (should_skip_merged_pr)
- Branch pattern matching
- File content batch fetching (base/head)
- Account age calculation
- Open/closed PR categorization

Mocks all HTTP calls for reliable, fast test execution.
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