mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
code review changes
This commit is contained in:
@@ -2,7 +2,7 @@ import asyncio
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
from adapters.services.rahasher import ( # Replace with actual import
|
||||
from adapters.services.rahasher import (
|
||||
PLATFORM_SLUG_TO_RETROACHIEVEMENTS_ID,
|
||||
RAHASHER_VALID_HASH_REGEX,
|
||||
RAHasherError,
|
||||
|
||||
@@ -11,6 +11,8 @@ from adapters.services.retroachievements import (
|
||||
)
|
||||
from fastapi import HTTPException, status
|
||||
|
||||
INVALID_GAME_ID = 999999
|
||||
|
||||
|
||||
class TestAuthMiddleware:
|
||||
@patch("adapters.services.retroachievements.RETROACHIEVEMENTS_API_KEY", "test_key")
|
||||
@@ -265,5 +267,5 @@ class TestRetroAchievementsServiceIntegration:
|
||||
"invalid_key",
|
||||
):
|
||||
# This should handle the error gracefully
|
||||
result = await service.get_game_extended_details(999999)
|
||||
result = await service.get_game_extended_details(INVALID_GAME_ID)
|
||||
assert isinstance(result, list)
|
||||
|
||||
Reference in New Issue
Block a user