fix tests

This commit is contained in:
2025-10-19 20:49:42 +02:00
parent 4db53c93df
commit e578623999
6 changed files with 434 additions and 54 deletions

View File

@@ -180,14 +180,14 @@ async def test_delete_backup(authenticated_client, mock_config_service):
@pytest.mark.asyncio
async def test_config_persistence(client, mock_config_service):
async def test_config_persistence(authenticated_client, mock_config_service):
"""Test end-to-end configuration persistence."""
# Get initial config
resp = await client.get("/api/config")
resp = await authenticated_client.get("/api/config")
assert resp.status_code == 200
initial = resp.json()
# Validate it can be loaded again
resp2 = await client.get("/api/config")
resp2 = await authenticated_client.get("/api/config")
assert resp2.status_code == 200
assert resp2.json() == initial