Files
marquiz-metrics/tests/test_counters.py
13orlov 6fc14db51e
All checks were successful
continuous-integration/drone/push Build is passing
refactor(tests): Simplify test setup and fix client fixture
2025-08-23 22:36:23 +01:00

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"}