NeteaseCloudMusic_PythonSDK/test_gender/template
2023-12-11 18:31:07 +08:00

10 lines
333 B
Plaintext

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)