feat: 구로 나뉜 13개 시의 구마다 자기 주소(/today/gyeonggi/seongnam/bundang, 39장), 구를 고르면 구 주소로

This commit is contained in:
minaChoi committed 2026-10-20 09:35:16 +09:00
1 parent 0a16c5329d
commit 96cbd19c61
9 files changed
+595 -15

No files matched your search

+11
View File
@@ -65,3 +65,14 @@ async def test_today_page_fills_real_feed(offline, monkeypatch):
assert page.status_code == 200 and "<h1>서울 중구 오늘 날씨, 뭐 할까?</h1><p>최저 " in page.text and "지금 20°" in page.text
assert "해 지는 시각 오후" in page.text and "<ol><li>" in page.text
assert missing.status_code == 404
@pytest.mark.anyio
async def test_gu_page_of_city_has_its_own_address(offline, monkeypatch):
async def template(self, path):
return TEMPLATE if path == "today/gyeonggi/seongnam/bundang" else None
monkeypatch.setattr(SeoService, "template", template)
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
page = await client.get("/v1/seo/today/gyeonggi/seongnam/bundang")
assert page.status_code == 200 and "지금 20°" in page.text