MCPcopy Create free account
hub / github.com/dataabc/weiboSpider / test_info_parser

Function test_info_parser

tests/test_parser/test_info_parser.py:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7@patch('requests.get', mock_request_get_content)
8def test_info_parser():
9 info_parser = InfoParser(cookie="", user_id="1669879400")
10 user = info_parser.extract_user_info()
11 # With info_parser, we can only get the nickname.
12 assert (user.nickname == "Dear-迪丽热巴")

Callers

nothing calls this directly

Calls 2

extract_user_infoMethod · 0.95
InfoParserClass · 0.90

Tested by

no test coverage detected