Load .env into the process env, then merge with ``envs`` and return.
(envs: Dict[str, str] = None,
dotenv_path: Optional[str] = None)
| 30 | |
| 31 | @staticmethod |
| 32 | def load_env(envs: Dict[str, str] = None, |
| 33 | dotenv_path: Optional[str] = None) -> Dict[str, str]: |
| 34 | """Load .env into the process env, then merge with ``envs`` and return.""" |
| 35 | Env.load_dotenv_into_environ(dotenv_path) |
| 36 | _envs = copy(os.environ) |
| 37 | _envs.update(envs or {}) |
| 38 | return _envs |
no test coverage detected