You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
Python
21 lines
1.0 KiB
Python
# backend/tests/test_demo_unchanged.py — AUTH_ENABLED=false 데모 무손상(phase-0~14 회귀 동일)
|
|
def test_me_is_jiwoo_without_login(client):
|
|
# 데모 모드: /login 없이 current_user 가 지우로 우회
|
|
me = client.get("/api/me").json()
|
|
assert me["id"] == "jiwoo" and me["initial"] == "지"
|
|
|
|
|
|
def test_capture_and_list_unscoped_demo(client):
|
|
cap = client.post("/api/inbox/capture", json={"kind": "text", "raw": "회의록 정리하기"}).json()
|
|
assert cap["classification"]["type"] # 분류 파이프라인 그대로 동작
|
|
# 캡처가 인박스 목록(지우 스코프=전체)에 보임
|
|
ids = [it["id"] for it in client.get("/api/inbox").json()]
|
|
assert cap["item"]["id"] in ids
|
|
|
|
|
|
def test_demo_three_domains_empty_others_intact(client):
|
|
# phase-16+: 메일/일정/작업은 빈 상태로 시작, 그 외 데모 기능(결재)은 그대로
|
|
assert client.get("/api/tasks").json() == []
|
|
assert client.get("/api/mail").json() == []
|
|
assert len(client.get("/api/approvals").json()["pending"]) == 3 # high 3건
|