test(lidarr): give the download record fixture distinct album and artist ids

The shared download record held id, album id, and artist id all equal to
1, so reading the wrong one of the three could not fail any test that
uses the fixture. Move artist id to 3 and id to 9, keeping album id at 1
so the fully populated album view still shows its track as downloading,
and update the three handler assertions that named the old id.
This commit is contained in:
Dark-Alex-17 committed 2026-09-17 15:36:27 -06:00
1 parent e9c323c4e8
commit 25da032f02
2 files changed
+5 -5

No files matched your search

@@ -141,7 +141,7 @@ mod tests {
#[case( #[case(
ActiveLidarrBlock::Downloads, ActiveLidarrBlock::Downloads,
ActiveLidarrBlock::DeleteDownloadPrompt, ActiveLidarrBlock::DeleteDownloadPrompt,
LidarrEvent::DeleteDownload(1) LidarrEvent::DeleteDownload(9)
)] )]
#[case( #[case(
ActiveLidarrBlock::Downloads, ActiveLidarrBlock::Downloads,
@@ -338,7 +338,7 @@ mod tests {
#[case( #[case(
ActiveLidarrBlock::Downloads, ActiveLidarrBlock::Downloads,
ActiveLidarrBlock::DeleteDownloadPrompt, ActiveLidarrBlock::DeleteDownloadPrompt,
LidarrEvent::DeleteDownload(1) LidarrEvent::DeleteDownload(9)
)] )]
#[case( #[case(
ActiveLidarrBlock::Downloads, ActiveLidarrBlock::Downloads,
@@ -423,7 +423,7 @@ mod tests {
) )
.extract_download_id(); .extract_download_id();
assert_eq!(download_id, 1); assert_eq!(download_id, 9);
} }
#[test] #[test]
@@ -184,9 +184,9 @@ pub mod test_utils {
DownloadRecord { DownloadRecord {
title: "Test download title".to_owned(), title: "Test download title".to_owned(),
status: DownloadStatus::Downloading, status: DownloadStatus::Downloading,
id: 1, id: 9,
album_id: Some(Number::from(1i64)), album_id: Some(Number::from(1i64)),
artist_id: Some(Number::from(1i64)), artist_id: Some(Number::from(3i64)),
size: 3543348019f64, size: 3543348019f64,
sizeleft: 1771674009f64, sizeleft: 1771674009f64,
output_path: Some(HorizontallyScrollableText::from("/nfs/music/alex/album")), output_path: Some(HorizontallyScrollableText::from("/nfs/music/alex/album")),