Sample Xiaohongshu note data for testing
()
| 37 | |
| 38 | @pytest.fixture |
| 39 | def sample_xhs_note(): |
| 40 | """Sample Xiaohongshu note data for testing""" |
| 41 | return { |
| 42 | "note_id": "test_note_123", |
| 43 | "type": "normal", |
| 44 | "title": "Test Title", |
| 45 | "desc": "This is a test description", |
| 46 | "video_url": "", |
| 47 | "time": 1700000000, |
| 48 | "last_update_time": 1700000000, |
| 49 | "user_id": "user_123", |
| 50 | "nickname": "Test User", |
| 51 | "avatar": "https://example.com/avatar.jpg", |
| 52 | "liked_count": 100, |
| 53 | "collected_count": 50, |
| 54 | "comment_count": 25, |
| 55 | "share_count": 10, |
| 56 | "ip_location": "Shanghai", |
| 57 | "image_list": "https://example.com/img1.jpg,https://example.com/img2.jpg", |
| 58 | "tag_list": "test,programming,Python", |
| 59 | "note_url": "https://www.xiaohongshu.com/explore/test_note_123", |
| 60 | "source_keyword": "test keyword", |
| 61 | "xsec_token": "test_token_123" |
| 62 | } |
| 63 | |
| 64 | |
| 65 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected