feat: 添加 Spider 基类 + Pipeline 配置 + 测试

This commit is contained in:
2026-05-09 13:37:40 +08:00
parent a994dc5f53
commit d9af819d2e
6 changed files with 146 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import pytest
@pytest.fixture
def sample_announcement_data():
return {
"title": "测试公告标题",
"publish_date": "2026-05-09",
"purchase_name": "测试单位",
"content_url": "https://example.com/detail/123",
"source_code": "ZcyAnnouncement1",
"source_name": "采购公告",
}