Added the full Radarr CLI so users can programmatically access all the same management features as in the TUI
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use core::sync::atomic::Ordering::SeqCst;
|
||||
use pretty_assertions::{assert_eq, assert_str_eq};
|
||||
use rstest::rstest;
|
||||
use std::cmp::Ordering;
|
||||
@@ -213,7 +214,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -221,7 +222,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
4
|
||||
);
|
||||
|
||||
@@ -234,7 +235,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -242,7 +243,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
0
|
||||
);
|
||||
}
|
||||
@@ -266,7 +267,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -274,7 +275,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
4
|
||||
);
|
||||
|
||||
@@ -287,7 +288,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -295,7 +296,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
0
|
||||
);
|
||||
}
|
||||
@@ -488,7 +489,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -496,7 +497,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
1
|
||||
);
|
||||
|
||||
@@ -509,7 +510,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -517,7 +518,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
0
|
||||
);
|
||||
}
|
||||
@@ -536,7 +537,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -544,7 +545,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
1
|
||||
);
|
||||
|
||||
@@ -557,7 +558,7 @@ mod tests {
|
||||
.handle();
|
||||
|
||||
assert_eq!(
|
||||
*app
|
||||
app
|
||||
.data
|
||||
.radarr_data
|
||||
.movies
|
||||
@@ -565,7 +566,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.offset
|
||||
.borrow(),
|
||||
.load(SeqCst),
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user