# retoor <retoor@molodetz.nl>

from tests.conftest import BASE_URL


def test_devii_clippy_unavailable(alice):
    page, _ = alice
    resp = page.request.post(f"{BASE_URL}/devii/clippy/ai/chat", data="{}")
    assert resp.status == 503
    data = resp.json()
    assert "unavailable" in data.get("error", "").lower()
