

def create_plugin_link(self, **kwargs):
    dash_data = {
        'title': 'title',
        'url': 'url',
        'description': 'description',
        'plugin_id': None,
        'hidden': False,
    }
    if kwargs:
        dash_data.update(kwargs)
    plugin_link = PluginLink()
    plugin_link.update(dash_data)
    self.db.add(plugin_link)
    self.db.commit()
    return plugin_link

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py EnvironmentManager.create_plugin_link/original