MCPcopy Create free account
hub / github.com/SunoAI-API/Suno-API / test_generate_music

Function test_generate_music

test.py:9–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_generate_music():
10 data = {
11 "prompt": "[Verse]\nWake up in the morning, feeling brand new\nGonna shake off the worries, leave 'em in the rearview\nStep outside, feeling the warmth on my face\nThere's something 'bout the sunshine that puts me in my place\n\n[Verse 2]\nWalking down the street, got a spring in my step\nThe rhythm in my heart, it just won't forget\nEverywhere I go, people smiling at me\nThey can feel the joy, it's contagious, can't you see?\n\n[Chorus]\nI got sunshine in my pocket, happiness in my soul\nA skip in my stride, and I'm ready to go\nNothing gonna bring me down, gonna keep on shining bright\nI got sunshine in my pocket, this world feels so right",
12 "tags": "heartfelt anime",
13 "mv": "chirp-v3-0",
14 "title": "Sunshine in your Pocket",
15 "continue_clip_id": None,
16 "continue_at": None,
17 }
18
19 r = requests.post(
20 "http://127.0.0.1:8000/generate/description-mode", data=json.dumps(data)
21 )
22
23 resp = r.text
24 print(resp)
25
26
27def test_generate_music_with_description():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected