dotenv-flow 0.16.2

A `dotenv-flow` implementation for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod common;

use dotenv_flow::*;
use std::env;

use crate::common::*;

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

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

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