[feat] solution/backend: 업소를 여행 일정의 출발·복귀 정거장으로 넣는다
This commit is contained in:
1 parent
0c2b915973
commit
4184cbe665
5 files changed
+161
-38
No files matched your search
@@ -249,3 +249,19 @@ async def test_ensure_generated_by_id_on_unknown_place(db_engine, spy_perplexity
|
||||
assert calls == []
|
||||
assert out["counts"] == {}
|
||||
assert out["notes"]
|
||||
|
||||
|
||||
async def test_lodging_coordinates_flow_from_place_to_generated_stops(db_engine, spy_perplexity):
|
||||
"""검증: place 에 좌표가 있으면 저장된 일정의 업소 정거장에도 실린다(2026-09-11 결정:
|
||||
"업소는 출발지에 포함"). 기대결과: ensure_generated 가 place.latitude/longitude 를
|
||||
grounding 의 _apply_schedule 까지 넘긴다 — 모델에게 묻지 않는다."""
|
||||
place = _FakePlace(uuid.uuid4())
|
||||
place.latitude = 35.98642
|
||||
place.longitude = 126.70612
|
||||
|
||||
await service.ensure_generated(place)
|
||||
items = await service.get_itineraries(place.place_id)
|
||||
|
||||
lodging = items[0]["days"][0]["stops"][0]
|
||||
assert lodging["name"] == "스테이,머뭄"
|
||||
assert (lodging["latitude"], lodging["longitude"]) == (35.98642, 126.70612)
|
||||
Reference in new issue
Block a user