-
-
Notifications
You must be signed in to change notification settings - Fork 251
Service adapter tests #2058
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
Service adapter tests #2058
Conversation
Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information. |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
There was a problem hiding this 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 pull request adds comprehensive test coverage for service adapters in the RetroAchievements integration, including both unit and integration tests. The tests cover authentication, error handling, API interactions, and a hash calculation service.
- Adds extensive test suite for RetroAchievementsService with both mocked unit tests and real API integration tests
- Implements tests for RAHasherService covering hash calculation, validation, and platform mappings
- Includes VCR cassettes for reproducible API integration testing
Reviewed Changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
pytest.ini | Adds environment variables for RetroAchievements authentication |
backend/adapters/services/tests/test_retroachivements.py | Comprehensive test suite for RetroAchievements service with unit and integration tests |
backend/adapters/services/tests/test_rahasher.py | Tests for hash calculation service, validation regex, and platform mappings |
backend/adapters/services/tests/cassettes/* | VCR cassettes for reproducible API testing across multiple test scenarios |
Description
Explain the changes or enhancements you are proposing with this pull request.
Checklist
Please check all that apply.
Screenshots