feat: Added TUI and CLI support for viewing Artist history in Lidarr

This commit is contained in:
2026-01-14 16:09:37 -07:00
parent 8b9467bd39
commit d7f0dd5950
66 changed files with 1843 additions and 256 deletions
+16 -2
View File
@@ -305,7 +305,7 @@ mod tests {
}
#[test]
fn test_lidarr_serdeable_from_history_wrapper() {
fn test_lidarr_serdeable_from_lidarr_history_wrapper() {
let history_wrapper = LidarrHistoryWrapper {
records: vec![LidarrHistoryItem {
id: 1,
@@ -317,7 +317,21 @@ mod tests {
assert_eq!(
lidarr_serdeable,
LidarrSerdeable::HistoryWrapper(history_wrapper)
LidarrSerdeable::LidarrHistoryWrapper(history_wrapper)
);
}
#[test]
fn test_lidarr_serdeable_from_lidarr_history_items() {
let history_items = vec![LidarrHistoryItem {
id: 1,
..LidarrHistoryItem::default()
}];
let lidarr_serdeable: LidarrSerdeable = history_items.clone().into();
assert_eq!(
lidarr_serdeable,
LidarrSerdeable::LidarrHistoryItems(history_items)
);
}