From c6ead790ccfbffc83bb3cb3b27df4189b11f4dd3 Mon Sep 17 00:00:00 2001 From: Adam Lamers Date: Mon, 27 Apr 2026 22:28:32 -0400 Subject: [PATCH] fix tests --- backend/tests/test_api_system.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/tests/test_api_system.py b/backend/tests/test_api_system.py index d817a24..3564c74 100644 --- a/backend/tests/test_api_system.py +++ b/backend/tests/test_api_system.py @@ -1,13 +1,13 @@ -from app.db import models from datetime import datetime, timezone +from app.db import models + def test_get_dashboard_stats_empty(client): """Tests the dashboard stats endpoint when the database is empty.""" response = client.get("/system/dashboard/stats") assert response.status_code == 200 data = response.json() - assert data["total_files_indexed"] == 0 assert data["total_data_size"] == 0 assert data["unprotected_files_count"] == 0 assert data["media_distribution"] == {"LTO": 0, "HDD": 0, "Cloud": 0} @@ -29,7 +29,6 @@ def test_get_dashboard_stats_populated(client, db_session): response = client.get("/system/dashboard/stats") assert response.status_code == 200 data = response.json() - assert data["total_files_indexed"] == 1 assert data["unprotected_files_count"] == 1 assert data["unprotected_data_size"] == 1024