Merge remote-tracking branch 'origin/sub_laptop_5' into sub_laptop_7

This commit is contained in:
2026-09-28 22:25:53 +09:00
5 changed files with 23 additions and 1 deletions
+6
View File
@@ -100,6 +100,12 @@ def test_in_use_templates_not_deleted(client):
got = client.delete(f"/api/m02/templates/{kind}/{name}")
assert got.status_code == 409 and "쓰는 양식" in got.json()["detail"]
assert client.get(f"/api/m02/templates/{kind}/{name}").status_code == 200
# 목록이 쓰는 곳을 실어 화면이 확인 창 전에 막음 · 안 쓰는 양식엔 없음
client.put("/api/m02/templates/drawing/아무도", json={"판": "", "문서": doc})
rows = {(r["종류"], r["이름"]): r for r in client.get("/api/m02/templates").json()}
for key, use in store.IN_USE.items():
assert rows[key]["쓰는곳"] == use
assert "쓰는곳" not in rows[("drawing", "아무도")]
def test_empty_doc_rejected_and_file_untouched(client):