feat(network): Added support for fetching series details for a given series ID in Sonarr
This commit is contained in:
1 parent
540db5993b
commit
5e63c34a9f
4 files changed
+118
-17
No files matched your search
@@ -144,15 +144,27 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sonarr_serdeable_from_series() {
|
||||
let series = vec![Series {
|
||||
fn test_sonarr_serdeable_from_series_vec() {
|
||||
let series_vec = vec![Series {
|
||||
id: 1,
|
||||
..Series::default()
|
||||
}];
|
||||
|
||||
let sonarr_serdeable: SonarrSerdeable = series_vec.clone().into();
|
||||
|
||||
assert_eq!(sonarr_serdeable, SonarrSerdeable::SeriesVec(series_vec));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sonarr_serdeable_from_series() {
|
||||
let series = Series {
|
||||
id: 1,
|
||||
..Series::default()
|
||||
};
|
||||
|
||||
let sonarr_serdeable: SonarrSerdeable = series.clone().into();
|
||||
|
||||
assert_eq!(sonarr_serdeable, SonarrSerdeable::SeriesVec(series));
|
||||
assert_eq!(sonarr_serdeable, SonarrSerdeable::Series(series));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user