fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user