Use Starlette 'environ' when reading config

This commit is contained in:
Tom Christie 2018-12-05 14:28:18 +00:00
parent 5712d95017
commit e525e40043
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ environ = Environ()
class Config:
def __init__(
self, env_file: str = None, environ: typing.Mapping[str, str] = os.environ
self, env_file: str = None, environ: typing.Mapping[str, str] = environ
) -> None:
self.environ = environ
self.file_values = {} # type: typing.Dict[str, str]