Beispiel #1
0
def test_config_from_object() -> None:
    config = Config(os.path.dirname(__file__))
    config.from_object(__name__)
    _check_standard_config(config)
Beispiel #2
0
def test_config_from_object() -> None:
    config = Config(Path(__file__).parent)
    config.from_object(__name__)
    _check_standard_config(config)
Beispiel #3
0
def test_config_from_object() -> None:
    config = Config(os.path.dirname(__file__))
    config.from_object(__name__)
    assert config['TEST_KEY'] == 'test_value'