dotenv 0.14.1

A `dotenv` implementation for Rust
Documentation
mod common;

use std::env;
use dotenv::*;

use crate::common::*;

#[test]
fn test_from_path() {
    let dir = make_test_dotenv().unwrap();

    let mut path = env::current_dir().unwrap();
    path.push(".env");

    from_path(&path).ok();

    assert_eq!(env::var("TESTKEY").unwrap(), "test_val");

    env::set_current_dir(dir.path().parent().unwrap()).unwrap();
    dir.close().unwrap();
}