audio streaming app plyr.fm
38
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(integration): use flat artist_handle field on track response (#1360)

the GET /tracks/{id} response shape is flat (`artist`, `artist_handle`,
`artist_did` as siblings of the track fields), not nested. the
integration test was reading `track['artist']['handle']`, which crashed
the print statement *after* the upload had already succeeded — so the
test reported a fail despite the server-side path being healthy.

caught while smoke-testing the worker process split (#1359) on staging.

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>

authored by

nate nowack
Claude Opus 4 (1M context)
and committed by
GitHub
1904e6db 522cc694

+1 -1
+1 -1
backend/tests/test_integration_upload.py
··· 142 142 f"track not found: {track_response.text}" 143 143 ) 144 144 track = track_response.json() 145 - print(f"track created: {track['title']} by {track['artist']['handle']}") 145 + print(f"track created: {track['title']} by @{track['artist_handle']}") 146 146 147 147 # 5. delete track 148 148 delete_response = await client.delete(