fix(radarr): Pass in the search query for the SearchNewMovie event when publishing to the networking channel

This commit is contained in:
2024-12-17 21:06:07 -07:00
parent ba38dcdc15
commit ede7f64c4b
8 changed files with 137 additions and 243 deletions
@@ -1522,6 +1522,20 @@ mod tests {
}
});
}
#[test]
fn test_add_movie_search_no_panic_on_none_search_result() {
let mut app = App::default();
app.data.radarr_data.add_searched_movies = None;
AddMovieHandler::with(
DEFAULT_KEYBINDINGS.esc.key,
&mut app,
ActiveRadarrBlock::AddMovieSearchResults,
None,
)
.handle();
}
#[rstest]
fn test_build_add_movie_body(#[values(true, false)] movie_details_context: bool) {