9 lines
267 B
Python
9 lines
267 B
Python
import pytest
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_get_counters_unauthorized(client):
|
|
async with client:
|
|
response = await client.get("/api/v1/counters/")
|
|
|
|
assert response.status_code == 403
|
|
assert response.json() == {"detail": "Not authenticated"} |