mod isol; use soulog::*; use lazy_db::*; use isol::*; use diary_cli::entry::Section; use std::fs; use toml::Table; #[test] fn isol_section() { // Setup let tmp = new_env(); let logger = sbl::PanicLogger::new(); let content = tmp.get_path().join("Section"); let container = LazyContainer::init(content).unwrap(); let example_path = tmp.get_path().to_string_lossy().to_string() + "/example-path.txt"; fs::write(&example_path, "example content of a file").unwrap(); let toml = format!(" title = 'Example Title' path = '{example_path}' notes = [ 'note1', 'note2', 'note3' ] "); // Store let mut section = Section::new( &toml.parse::