74일차 정답 공개 (LAB-A · VIBE-A · answers · tver), Lab 03 예제 3 이해하기 보강
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ae33432a9
commit
d663d045e3
86 files changed
+16144
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import json
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
DATA = Path(__file__).parent / "data"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def v1():
|
||||
return json.loads((DATA / "helpdesk-v1.json").read_text(encoding="utf-8"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def v2():
|
||||
return json.loads((DATA / "helpdesk-v2.json").read_text(encoding="utf-8"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def work(tmp_path):
|
||||
"""A my-work folder with v1 as helpdesk.json, a note and a cases file (not workflows)."""
|
||||
folder = tmp_path / "my-work"
|
||||
folder.mkdir()
|
||||
shutil.copy(DATA / "helpdesk-v1.json", folder / "helpdesk.json")
|
||||
(folder / "PROMPTS.md").write_text("# prompts\n", encoding="utf-8")
|
||||
(folder / "cases.json").write_text('{"webhook": "x", "cases": []}', encoding="utf-8")
|
||||
return folder
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def store_dir(tmp_path):
|
||||
return tmp_path / "store"
|
||||
Reference in new issue
Block a user