fixed some tests

This commit is contained in:
2025-11-15 16:56:12 +01:00
parent f49598d82b
commit fac0cecf90
13 changed files with 10434 additions and 3301 deletions

View File

@@ -111,16 +111,19 @@ async def test_get_queue_status(authenticated_client, mock_download_service):
assert response.status_code == 200
data = response.json()
# Updated to match new response structure
assert "is_running" in data
assert "is_paused" in data
assert "active_downloads" in data
assert "pending_queue" in data
assert "completed_downloads" in data
assert "failed_downloads" in data
# Updated to match new response structure with nested status
assert "status" in data
assert "statistics" in data
assert data["is_running"] is True
assert data["is_paused"] is False
status_data = data["status"]
assert "is_running" in status_data
assert "is_paused" in status_data
assert "active_downloads" in status_data
assert "pending_queue" in status_data
assert "completed_downloads" in status_data
assert "failed_downloads" in status_data
assert status_data["is_running"] is True
assert status_data["is_paused"] is False
mock_download_service.get_queue_status.assert_called_once()
mock_download_service.get_queue_stats.assert_called_once()