fix: Add missing commas in function calls and improve code formatting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Tests for dashboard service."""
|
||||
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from datetime import UTC, datetime
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
@@ -63,7 +63,7 @@ class TestDashboardService:
|
||||
):
|
||||
"""Test getting soundboard statistics with exception."""
|
||||
mock_sound_repository.get_soundboard_statistics = AsyncMock(
|
||||
side_effect=Exception("Database error")
|
||||
side_effect=Exception("Database error"),
|
||||
)
|
||||
|
||||
with pytest.raises(Exception, match="Database error"):
|
||||
@@ -105,7 +105,7 @@ class TestDashboardService:
|
||||
):
|
||||
"""Test getting track statistics with exception."""
|
||||
mock_sound_repository.get_track_statistics = AsyncMock(
|
||||
side_effect=Exception("Database error")
|
||||
side_effect=Exception("Database error"),
|
||||
)
|
||||
|
||||
with pytest.raises(Exception, match="Database error"):
|
||||
@@ -198,7 +198,7 @@ class TestDashboardService:
|
||||
):
|
||||
"""Test getting top sounds with exception."""
|
||||
mock_sound_repository.get_top_sounds = AsyncMock(
|
||||
side_effect=Exception("Database error")
|
||||
side_effect=Exception("Database error"),
|
||||
)
|
||||
|
||||
with pytest.raises(Exception, match="Database error"):
|
||||
@@ -274,4 +274,4 @@ class TestDashboardService:
|
||||
def test_get_date_filter_unknown_period(self, dashboard_service):
|
||||
"""Test date filter for unknown period."""
|
||||
result = dashboard_service._get_date_filter("unknown_period")
|
||||
assert result is None
|
||||
assert result is None
|
||||
|
||||
Reference in New Issue
Block a user