"""Announcement list tests — Go/Gin backend (read-only endpoint).""" import pytest from httpx import AsyncClient from tests.conftest import auth_header class TestAnnouncements: async def test_list_announcements(self, client: AsyncClient, admin_token: str): resp = await client.get("/api/v1/announcements", headers=auth_header(admin_token)) assert resp.status_code == 200 data = resp.json() assert isinstance(data, list) async def test_no_auth(self, client: AsyncClient): resp = await client.get("/api/v1/announcements") assert resp.status_code == 401