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

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:
2026-11-25 13:21:34 -05:00
co-authored by Claude Opus 5.5
parent 4244d81dfd
commit 4e1807cbba
80 changed files with 570 additions and 570 deletions
@@ -22,9 +22,9 @@ import kotlin.test.assertEquals
class AdminQuarantineViewModelTest {
private val row = AdminQuarantineItemRef(
trackId = "t1",
trackTitle = "Roygbiv",
artistName = "Boards of Canada",
albumTitle = "Geogaddi",
trackTitle = "Prismatic",
artistName = "Fields of Ontario",
albumTitle = "Geomantic",
albumId = "al1",
reportCount = 1,
)
@@ -71,10 +71,10 @@ class HomeRepositoryTest {
assertEquals("al1", skeleton[0].id)
assertNull(skeleton[0].value) // skeleton in position
albumFlow.value = AlbumRef(id = "al1", title = "Geogaddi", artistId = "a1")
albumFlow.value = AlbumRef(id = "al1", title = "Geomantic", artistId = "a1")
val revealed = awaitItem()
assertEquals("al1", revealed[0].id)
assertEquals("Geogaddi", revealed[0].value?.title) // tile reveals
assertEquals("Geomantic", revealed[0].value?.title) // tile reveals
cancelAndIgnoreRemainingEvents()
}
}
@@ -55,7 +55,7 @@ class LibraryRepositoryTest {
every { artistDao.observeAll() } returns
flowOf(
listOf(
CachedArtistEntity(id = "a1", name = "Boards of Canada", sortName = "Boards of Canada"),
CachedArtistEntity(id = "a1", name = "Fields of Ontario", sortName = "Fields of Ontario"),
),
)
// observeArtists now combines with albums (to derive the tile
@@ -67,7 +67,7 @@ class LibraryRepositoryTest {
val first = awaitItem()
assertEquals(1, first.size)
assertEquals("a1", first[0].id)
assertEquals("Boards of Canada", first[0].name)
assertEquals("Fields of Ontario", first[0].name)
awaitComplete()
}
}
@@ -82,13 +82,13 @@ class LibraryRepositoryTest {
"""
{
"id": "a1",
"name": "Boards of Canada",
"sort_name": "Boards of Canada",
"name": "Fields of Ontario",
"sort_name": "Fields of Ontario",
"album_count": 2,
"cover_url": "",
"albums": [
{"id": "al1", "title": "Music Has the Right to Children", "artist_id": "a1", "sort_title": "Music Has the Right to Children"},
{"id": "al2", "title": "Geogaddi", "artist_id": "a1", "sort_title": "Geogaddi"}
{"id": "al1", "title": "Music Has the Right to Wander", "artist_id": "a1", "sort_title": "Music Has the Right to Wander"},
{"id": "al2", "title": "Geomantic", "artist_id": "a1", "sort_title": "Geomantic"}
]
}
""".trimIndent(),
@@ -73,9 +73,9 @@ class LibraryViewModelTest {
fun `Success when DAOs emit content`() = runTest {
val repo = mockk<LibraryRepository>()
every { repo.observeArtists() } returns
flowOf(listOf(ArtistRef(id = "a1", name = "Boards of Canada", sortName = "Boards")))
flowOf(listOf(ArtistRef(id = "a1", name = "Fields of Ontario", sortName = "Fields")))
every { repo.observeAlbums() } returns
flowOf(listOf(AlbumRef(id = "al1", title = "Geogaddi", artistId = "a1")))
flowOf(listOf(AlbumRef(id = "al1", title = "Geomantic", artistId = "a1")))
val vm = LibraryViewModel(
repo,