test: Updated Rust edition to 2024 and refactored network module tests to be more idiomatic
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use clap::error::ErrorKind;
|
||||
use clap::CommandFactory;
|
||||
use clap::error::ErrorKind;
|
||||
|
||||
use crate::cli::radarr::list_command_handler::RadarrListCommand;
|
||||
use crate::cli::radarr::RadarrCommand;
|
||||
use crate::cli::Command;
|
||||
use crate::Cli;
|
||||
use crate::cli::Command;
|
||||
use crate::cli::radarr::RadarrCommand;
|
||||
use crate::cli::radarr::list_command_handler::RadarrListCommand;
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
#[test]
|
||||
@@ -135,8 +135,8 @@ mod tests {
|
||||
use crate::{
|
||||
app::App,
|
||||
cli::radarr::list_command_handler::{RadarrListCommand, RadarrListCommandHandler},
|
||||
models::{radarr_models::RadarrSerdeable, Serdeable},
|
||||
network::{radarr_network::RadarrEvent, MockNetworkTrait, NetworkEvent},
|
||||
models::{Serdeable, radarr_models::RadarrSerdeable},
|
||||
network::{MockNetworkTrait, NetworkEvent, radarr_network::RadarrEvent},
|
||||
};
|
||||
|
||||
#[rstest]
|
||||
|
||||
Reference in New Issue
Block a user