Skip to content

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

Merged
merged 6 commits into from
Jul 23, 2025
Merged

Service adapter tests #2058

merged 6 commits into from
Jul 23, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Jul 6, 2025

Description
Explain the changes or enhancements you are proposing with this pull request.

Checklist
Please check all that apply.

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

Screenshots

Copy link

trunk-io bot commented Jul 6, 2025

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.

Copy link

github-actions bot commented Jul 6, 2025

Test Results

369 tests  +33   368 ✅ +32   48s ⏱️ ±0s
  1 suites ± 0     1 💤 + 1 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 87df3e9. ± Comparison against base commit c1565fc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 6, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8077 5386 67% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 87df3e9 by action🐍

@gantoine gantoine marked this pull request as ready for review July 22, 2025 23:41
@gantoine gantoine requested a review from Copilot July 22, 2025 23:52
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 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

@gantoine gantoine merged commit 71fed65 into master Jul 23, 2025
9 checks passed
@gantoine gantoine deleted the service-adapter-tests branch July 23, 2025 02:36
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.

1 participant