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
def test_get_key_store__invalid_type(): app.config['KEY_STORE'] = 'invalid type' with raises(RuntimeError): with app.app_context(): get_key_store()
def test_get_key_store__no_config(): with raises(RuntimeError): with app.app_context(): get_key_store()