Fixing get_config replacement issue
This commit is contained in:
parent
e689aadbd8
commit
e8b8878781
@ -4,6 +4,7 @@ Tests for PlayerService functionality
|
||||
import pytest
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
from config import get_config
|
||||
from services.player_service import PlayerService, player_service
|
||||
from models.player import Player
|
||||
from exceptions import APIException
|
||||
@ -338,7 +339,6 @@ class TestGlobalPlayerServiceInstance:
|
||||
@pytest.mark.asyncio
|
||||
async def test_service_independence(self):
|
||||
"""Test that service instances are independent."""
|
||||
from config import get_config
|
||||
service1 = PlayerService()
|
||||
service2 = PlayerService()
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@ Tests for TeamService functionality
|
||||
import pytest
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
from config import get_config
|
||||
from services.team_service import TeamService, team_service
|
||||
from models.team import Team
|
||||
from exceptions import APIException
|
||||
@ -314,7 +315,6 @@ class TestGlobalTeamServiceInstance:
|
||||
|
||||
def test_team_service_global(self):
|
||||
"""Test global team service instance."""
|
||||
from config import get_config
|
||||
assert isinstance(team_service, TeamService)
|
||||
assert team_service.model_class == Team
|
||||
assert team_service.endpoint == 'teams'
|
||||
|
||||
@ -7,6 +7,7 @@ move validation, and trade validation logic.
|
||||
import pytest
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from config import get_config
|
||||
from services.trade_builder import (
|
||||
TradeBuilder,
|
||||
TradeValidationResult,
|
||||
@ -548,7 +549,6 @@ class TestTradeValidationResult:
|
||||
|
||||
# Mock participant validations
|
||||
from services.transaction_builder import RosterValidationResult
|
||||
from config import get_config
|
||||
|
||||
team1_validation = RosterValidationResult(
|
||||
is_legal=False,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user