Added unit tests for the add_movie_handler and added an additional test to radarr handles to ensure proper delegation. Also added a few macros for testing scrolling and home/end in all handlers to make life easier for those tests.

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent a7dccf7990
commit 52739f4da0
5 changed files with 876 additions and 312 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ mod radarr_data_tests {
}
#[test]
fn test_rest_search() {
fn test_reset_search() {
let mut radarr_data = RadarrData {
is_searching: true,
search: "test search".to_owned(),