def test_get_remote_set(fx_mock_remote_set): app.config['REMOTE_SET'] = fx_mock_remote_set with app.app_context(): assert get_remote_set() == fx_mock_remote_set
def test_get_remote_set__invalid_type(): app.config['REMOTE_SET'] = 'invalid type' with raises(RuntimeError): with app.app_context(): get_remote_set()
def test_get_remote_set__no_config(): with raises(RuntimeError): with app.app_context(): get_remote_set()