Split the monolithic test directory into three tiers (unit, api, e2e) with a path-mirroring directory structure. Added corresponding Makefile targets (test-unit, test-api, test-e2e) and updated all documentation references (CLAUDE.md, README.md, testing-cicd.html, testing-framework.html, testing-make.html) to reflect the new layout and naming conventions.
12 lines
318 B
Python
12 lines
318 B
Python
# 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()
|