Created At: 2026-11-18T09:27:14Z Completed At: 2026-11-18T09:27:14Z Command exited with code 0. Command output: =================================== FAILURES =================================== ______________________ test_bot_message_studio_lifecycle _______________________ async_client = db_session = @pytest.mark.asyncio async def test_bot_message_studio_lifecycle(async_client: AsyncClient, db_session: AsyncSession): # 1. Setup User A & Tenant A user_a_email = f"user_studio_{uuid.uuid4().hex[:6]}@example.com" resp_a = await async_client.post( "/api/v1/auth/register", json={"email": user_a_email, "password": "PasswordA123!", "full_name": "Studio Master"}, ) token_a = resp_a.json()["data"]["access_token"] tenant_resp = await async_client.post( "/api/v1/tenants", headers={"Authorization": f"Bearer {token_a}"}, json={"name": "Studio Tenant", "slug": f"studio-{uuid.uuid4().hex[:6]}"}, ) tenant_id = tenant_resp.json()["data"]["id"] headers_a = { "Authorization": f"Bearer {token_a}", "X-Tenant-ID": str(tenant_id), } # 2. Insert Bot A & Bot B into database for Tenant A bot_a = Bot( tenant_id=uuid.UUID(tenant_id),