feat: 서울문화포털 축제(동네·구청·공원)와 팝가 축제도 수집
This commit is contained in:
1 parent
ce6efe979a
commit
c7152563b9
9 files changed
+178
-9
No files matched your search
@@ -65,6 +65,14 @@ async def _async(v):
|
||||
return v
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _no_seoul_crawl(monkeypatch):
|
||||
"""서울문화포털은 키 없이 바로 긁어 오므로, 테스트가 실제 사이트를 부르지 않게 기본으로 막는다."""
|
||||
import services.week_service as week_service
|
||||
|
||||
monkeypatch.setattr(week_service, "fetch_seoul_festivals", lambda *a: _async([]))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def offline(monkeypatch):
|
||||
"""외부 API 를 모두 맑고 잔잔한 가짜 값으로 바꾼다."""
|
||||
|
||||
Reference in new issue
Block a user