MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / sample_xhs_comment

Function sample_xhs_comment

tests/conftest.py:66–81  ·  view source on GitHub ↗

Sample Xiaohongshu comment data for testing

()

Source from the content-addressed store, hash-verified

64
65@pytest.fixture
66def sample_xhs_comment():
67 """Sample Xiaohongshu comment data for testing"""
68 return {
69 "comment_id": "comment_123",
70 "create_time": 1700000000,
71 "ip_location": "Beijing",
72 "note_id": "test_note_123",
73 "content": "This is a test comment",
74 "user_id": "user_456",
75 "nickname": "Comment User",
76 "avatar": "https://example.com/avatar2.jpg",
77 "sub_comment_count": 5,
78 "pictures": "",
79 "parent_comment_id": 0,
80 "like_count": 15
81 }
82
83
84@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected