cleanup unused methods
This commit is contained in:
@@ -216,7 +216,7 @@ class TestQueueControlOperations:
|
||||
|
||||
async def test_start_queue_processing(self, authenticated_client):
|
||||
"""Test starting the queue processor."""
|
||||
response = await authenticated_client.post("/api/queue/control/start")
|
||||
response = await authenticated_client.post("/api/queue/start")
|
||||
|
||||
assert response.status_code in [200, 503]
|
||||
|
||||
@@ -227,10 +227,10 @@ class TestQueueControlOperations:
|
||||
async def test_pause_queue_processing(self, authenticated_client):
|
||||
"""Test pausing the queue processor."""
|
||||
# Start first
|
||||
await authenticated_client.post("/api/queue/control/start")
|
||||
await authenticated_client.post("/api/queue/start")
|
||||
|
||||
# Then pause
|
||||
response = await authenticated_client.post("/api/queue/control/pause")
|
||||
response = await authenticated_client.post("/api/queue/pause")
|
||||
|
||||
assert response.status_code in [200, 503]
|
||||
|
||||
@@ -241,11 +241,11 @@ class TestQueueControlOperations:
|
||||
async def test_resume_queue_processing(self, authenticated_client):
|
||||
"""Test resuming the queue processor."""
|
||||
# Start and pause first
|
||||
await authenticated_client.post("/api/queue/control/start")
|
||||
await authenticated_client.post("/api/queue/control/pause")
|
||||
await authenticated_client.post("/api/queue/start")
|
||||
await authenticated_client.post("/api/queue/pause")
|
||||
|
||||
# Then resume
|
||||
response = await authenticated_client.post("/api/queue/control/resume")
|
||||
response = await authenticated_client.post("/api/queue/resume")
|
||||
|
||||
assert response.status_code in [200, 503]
|
||||
|
||||
@@ -255,7 +255,7 @@ class TestQueueControlOperations:
|
||||
|
||||
async def test_clear_completed_downloads(self, authenticated_client):
|
||||
"""Test clearing completed downloads from the queue."""
|
||||
response = await authenticated_client.post("/api/queue/control/clear_completed")
|
||||
response = await authenticated_client.delete("/api/queue/completed")
|
||||
|
||||
assert response.status_code in [200, 503]
|
||||
|
||||
@@ -448,7 +448,7 @@ class TestAuthenticationRequirements:
|
||||
|
||||
async def test_queue_control_requires_auth(self, client):
|
||||
"""Test that queue control endpoints require authentication."""
|
||||
response = await client.post("/api/queue/control/start")
|
||||
response = await client.post("/api/queue/start")
|
||||
assert response.status_code == 401
|
||||
|
||||
async def test_item_operations_require_auth(self, client):
|
||||
|
||||
Reference in New Issue
Block a user