Exemplo n.º 1
0
def test_load_conf():
    """Test the configuration loading
    """
    with pytest.raises(SystemExit):
        kisee.load_conf("settings.toml")
    config = kisee.load_conf("tests/test_settings.toml")
    assert config["server"]["host"] == "0.0.0.0"
Exemplo n.º 2
0
def client(loop, aiohttp_client):
    settings = kisee.load_conf("tests/test_settings.toml")
    app = kisee.create_app(settings)
    return loop.run_until_complete(aiohttp_client(app))
Exemplo n.º 3
0
def settings():
    return kisee.load_conf("tests/test_settings.toml")