Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 509 Bytes

config.rst

File metadata and controls

33 lines (21 loc) · 509 Bytes

jnrbase.config

config

Functions

read_configs

Examples

from mock import patch

from jnrbase.config import read_configs

>>> cfg = read_configs('jnrbase') >>> assert cfg.colour >>> with patch.dict('os.environ', {'NO_COLOUR': 'true'}): ... cfg = read_configs('jnrbase') >>> assert not cfg.colour

config