import pytest pytestmark = pytest.mark.unit class TestFavicon: @pytest.mark.asyncio async def test_favicon_served(self, client): resp = await client.get("/favicon.ico") assert resp.status_code == 200 assert resp.content is not None assert len(resp.content) > 0