test fixes
This commit is contained in:
@@ -95,7 +95,7 @@ def test_rescan_direct_call():
|
||||
assert result["success"] is True
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
@pytest.mark.asyncio
|
||||
async def test_list_anime_endpoint_unauthorized():
|
||||
"""Test GET /api/v1/anime without authentication."""
|
||||
transport = ASGITransport(app=app)
|
||||
@@ -105,7 +105,7 @@ async def test_list_anime_endpoint_unauthorized():
|
||||
assert response.status_code in (200, 401, 503)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
@pytest.mark.asyncio
|
||||
async def test_rescan_endpoint_unauthorized():
|
||||
"""Test POST /api/v1/anime/rescan without authentication."""
|
||||
transport = ASGITransport(app=app)
|
||||
@@ -115,7 +115,7 @@ async def test_rescan_endpoint_unauthorized():
|
||||
assert response.status_code in (401, 503)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
@pytest.mark.asyncio
|
||||
async def test_search_anime_endpoint_unauthorized():
|
||||
"""Test POST /api/v1/anime/search without authentication."""
|
||||
transport = ASGITransport(app=app)
|
||||
@@ -127,7 +127,7 @@ async def test_search_anime_endpoint_unauthorized():
|
||||
assert response.status_code in (200, 401, 503)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_anime_detail_endpoint_unauthorized():
|
||||
"""Test GET /api/v1/anime/{id} without authentication."""
|
||||
transport = ASGITransport(app=app)
|
||||
|
||||
Reference in New Issue
Block a user