예제 #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"
예제 #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))
예제 #3
0
파일: conftest.py 프로젝트: FGuillet/kisee
def settings():
    return kisee.load_conf("tests/test_settings.toml")