mod common; use std::collections::HashMap; use std::env; use dotenv_rs::*; use crate::common::*; #[test] fn test_vars() { let dir = make_test_dotenv().unwrap(); let vars: HashMap = vars().collect(); assert_eq!(vars["TESTKEY"], "test_val"); env::set_current_dir(dir.path().parent().unwrap()).unwrap(); dir.close().unwrap(); }