test: invented artists, albums and MusicBrainz ids in place of real ones
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Test data and example comments named real artists, records and songs, and carried real MusicBrainz ids. One mapping swaps them for invented ones throughout (Fields of Ontario, Plastic Apes, Marlo Davies, ...), keeping what each case tests: sort order, index letter, escaping, title keys, artist-prefix stripping. A test username is no longer the operator's name. The cover-art and Last.fm connection checks still query real releases; they reach live services and need something that exists there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ func TestGenerateCollage_EmptyPlaylist(t *testing.T) {
|
||||
func TestGenerateCollage_OneTrack(t *testing.T) {
|
||||
pool := newPool(t)
|
||||
user := seedUser(t, pool, "alice")
|
||||
tk := seedTrack(t, pool, "Roygbiv", "BoC")
|
||||
tk := seedTrack(t, pool, "Prismatic", "FoO")
|
||||
dir := t.TempDir()
|
||||
svc := playlists.NewService(pool, nil, dir)
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ func TestDelete_MissingCoverFileTolerated(t *testing.T) {
|
||||
func TestAppendTracks_Snapshot(t *testing.T) {
|
||||
pool := newPool(t)
|
||||
user := seedUser(t, pool, "alice")
|
||||
track := seedTrack(t, pool, "Roygbiv", "Boards of Canada")
|
||||
track := seedTrack(t, pool, "Prismatic", "Fields of Ontario")
|
||||
svc := playlists.NewService(pool, nil, t.TempDir())
|
||||
|
||||
pl, _ := svc.Create(context.Background(), user.ID, "Test", "", false)
|
||||
@@ -336,11 +336,11 @@ func TestAppendTracks_Snapshot(t *testing.T) {
|
||||
if len(got.Tracks) != 1 {
|
||||
t.Fatalf("Tracks length = %d, want 1", len(got.Tracks))
|
||||
}
|
||||
if got.Tracks[0].Title != "Roygbiv" {
|
||||
t.Errorf("Title snapshot = %q, want Roygbiv", got.Tracks[0].Title)
|
||||
if got.Tracks[0].Title != "Prismatic" {
|
||||
t.Errorf("Title snapshot = %q, want Prismatic", got.Tracks[0].Title)
|
||||
}
|
||||
if got.Tracks[0].ArtistName != "Boards of Canada" {
|
||||
t.Errorf("ArtistName snapshot = %q, want Boards of Canada", got.Tracks[0].ArtistName)
|
||||
if got.Tracks[0].ArtistName != "Fields of Ontario" {
|
||||
t.Errorf("ArtistName snapshot = %q, want Fields of Ontario", got.Tracks[0].ArtistName)
|
||||
}
|
||||
if got.TrackCount != 1 {
|
||||
t.Errorf("rollup TrackCount = %d, want 1", got.TrackCount)
|
||||
|
||||
Reference in New Issue
Block a user