Add real functional test coverage for every API endpoint

Every existing test file mostly covered validation-shape (missing
fields -> 422, unknown id -> 404) but not the actual success path with
real dummy data, and auth.py's one "success" test just accepted any of
[200, 400, 422, 500] since it hit the real Telegram API unmocked - not
really testing anything. Went through every router and added the
missing success-path coverage:

- auth.py: mock telegram_auth/telegram_sync instead of hitting real
  Telegram; test request_code and login (including that login actually
  creates a User row), chats and chat-music with a real session header
  (previously only the 401-no-token cases existed).
- discovery.py: /listen success path (mocked identify_audio, asserts
  a DiscoveredSong row is actually created) and the no-match case;
  /swipe success path (asserts `liked` is actually persisted, not just
  that invalid ids 404).
- library.py: /library/stream and /library/lyrics had zero test
  coverage at all - added success + 404 + (for stream) file-missing-
  on-disk cases; /playlists/{id}/add success path (asserts the
  PlaylistTrack row actually exists, not just that invalid ids 404).
- music.py: /music/upload success path - generates a real minimal MP3
  at test time (mutagen rejects garbage bytes, so a fake byte string
  isn't enough here), mocks identify_audio, verifies the response
  metadata and that the tagged file actually lands in downloads/.
- social.py: added the one endpoint with no test at all,
  /social/posts/{id}/tree (both the 404 and the with-children case).

44 tests total (up from 24), full run still ~1s since everything
external is mocked - no real network calls anywhere in the suite.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
1 job from dev in 6 minutes and 50 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Test
failed #4216
test_api

06:50

 
Name Stage Failure
failed
test_api Test
2026-08-06T04:50:00.769094Z 01O -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
2026-08-06T04:50:00.769095Z 01O =========================== short test summary info ============================
2026-08-06T04:50:00.769096Z 01O FAILED tests/test_music.py::test_music_upload_success - assert 500 == 200
2026-08-06T04:50:00.769098Z 01O + where 500 = <Response [500 Internal Server Error]>.status_code
2026-08-06T04:50:00.769099Z 01O =================== 1 failed, 43 passed, 1 warning in 7.24s ====================
2026-08-06T04:50:09.807124Z 00O
2026-08-06T04:50:09.885626Z 00O+
2026-08-06T04:50:09.886224Z 00O+Cleaning up project directory and file based variables
2026-08-06T04:50:10.952613Z 00O
2026-08-06T04:50:15.113806Z 00O ERROR: Job failed: exit code 1