Started writing more tests in the handlers

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 4fa2ce6aee
commit c15bda5885
7 changed files with 428 additions and 10 deletions
+7 -2
View File
@@ -555,13 +555,18 @@ mod active_radarr_block_tests {
#[cfg(test)]
mod tests {
use std::time::Duration;
use pretty_assertions::assert_eq;
use tokio::sync::mpsc;
use crate::app::radarr::ActiveRadarrBlock;
use crate::app::App;
use crate::models::radarr_models::{Collection, CollectionMovie, Credit, Release};
use crate::models::StatefulTable;
use crate::network::radarr_network::RadarrEvent;
use crate::network::NetworkEvent;
use super::*;
#[tokio::test]
async fn test_dispatch_by_collections_block() {
let (mut app, mut sync_network_rx) = construct_app_unit();