NeteaseCloudMusic_PythonSDK/test_gender/template

10 lines
333 B
Plaintext
Raw Permalink Normal View History

2023-12-11 10:31:07 +00:00
def test_{{apiName}}(extra):
"""
{{explain}}
"""
example = {{example}}
for query in example:
response = netease_cloud_music_api.request("{{apiName}}", query)
extra.append(extras.json(response, name="response"))
assert (response["code"] == 200 or response["data"]["code"] == 200)