Skip to content

More service adapter tests #2139

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 2 commits into from
Jul 23, 2025
Merged

More service adapter tests #2139

merged 2 commits into from
Jul 23, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Jul 23, 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

@gantoine gantoine requested a review from Copilot July 23, 2025 14:08
Copy link

trunk-io bot commented Jul 23, 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.

@gantoine gantoine force-pushed the service-adapter-tests-2 branch from 48abaf9 to 696ba42 Compare July 23, 2025 14:09
Copilot

This comment was marked as outdated.

Copy link

github-actions bot commented Jul 23, 2025

Test Results

496 tests  +127   495 ✅ +127   58s ⏱️ +10s
  1 suites ±  0     1 💤 ±  0 
  1 files   ±  0     0 ❌ ±  0 

Results for commit 98f4cd4. ± Comparison against base commit 71fed65.

♻️ This comment has been updated with latest results.

@gantoine gantoine force-pushed the service-adapter-tests-2 branch from 696ba42 to b92ecd8 Compare July 23, 2025 14:15
Copy link

github-actions bot commented Jul 23, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8081 5576 69% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
backend/adapters/services/steamgriddb.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 98f4cd4 by action🐍

@gantoine gantoine requested a review from Copilot July 23, 2025 14:28
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 adds comprehensive test coverage for service adapters including SteamGridDB, ScreenScraper, MobyGames, and RetroAchievements. The changes improve testing infrastructure and provide thorough validation of service adapter functionality across unit, integration, and edge case scenarios.

Reviewed Changes

Copilot reviewed 29 out of 31 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pytest.ini Adds environment variables for new service adapter API keys
test_steamgriddb.py Complete test suite for SteamGridDB service including middleware, units tests, integration tests
test_screenscraper.py Complete test suite for ScreenScraper service with authentication and error handling tests
test_mobygames.py Comprehensive MobyGames service tests covering all API methods and edge cases
test_retroachivements.py Removes duplicate fixture and improves existing RetroAchievements tests
conftest.py Shared test fixture for aiohttp session management across all service tests
Multiple VCR cassettes Recorded API responses for deterministic integration testing
Comments suppressed due to low confidence (1)

backend/adapters/services/tests/test_mobygames.py:17

  • The type alias MockResponse is overly specific and doesn't match all actual usage patterns in the file. Consider using a more generic type or Union type to better represent the varied response structures.
MockResponse = dict[str, list[dict[str, int]]]

@gantoine gantoine merged commit ff8d583 into master Jul 23, 2025
9 checks passed
@gantoine gantoine deleted the service-adapter-tests-2 branch July 23, 2025 15:00
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