use crate::errors::AppError;
use std::path::PathBuf;
use crate::fs::DirectoryReader;
use crate::imdl::imdl_command::ImdlCommand;
use crate::testing::TORRENTS_SAMPLES_DIR;
#[tokio::test]
#[ignore]
async fn show() -> Result<(), AppError> {
let paths = DirectoryReader::new()
.with_extension("torrent")
.read(&PathBuf::from(TORRENTS_SAMPLES_DIR))
.expect("Directory should exist");
let path = paths.first().expect("Should be at least one sample");
let summary = ImdlCommand::show(path).await?;
assert!(!summary.files.is_empty());
Ok(())
}