示例#1
0
def test_get_key_store(fx_key_store):
    app.config['KEY_STORE'] = fx_key_store
    with app.app_context():
        assert get_key_store() is fx_key_store
示例#2
0
def test_get_key_store__invalid_type():
    app.config['KEY_STORE'] = 'invalid type'
    with raises(RuntimeError):
        with app.app_context():
            get_key_store()
示例#3
0
def test_get_key_store__no_config():
    with raises(RuntimeError):
        with app.app_context():
            get_key_store()
示例#4
0
def test_get_key_store(fx_key_store):
    app.config['KEY_STORE'] = fx_key_store
    with app.app_context():
        assert get_key_store() is fx_key_store
示例#5
0
def test_get_key_store__invalid_type():
    app.config['KEY_STORE'] = 'invalid type'
    with raises(RuntimeError):
        with app.app_context():
            get_key_store()
示例#6
0
def test_get_key_store__no_config():
    with raises(RuntimeError):
        with app.app_context():
            get_key_store()